struct MyFuncPad { int count; }; /* Creates a list of ints, numbered 1 to the int located at *pad. */ void my_func(struct NestedLoopList* list_ptr, void* pad) { int count = (*(MyFuncPad*)pad).count; int* array = (int*)calloc(count, sizeof(int)); int i; for (i=0; i