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; struct Element* elem_arr; Element* dst; int i; count = (*(MyFuncPad*)pad).count; elem_arr = (struct Element*)calloc(count, sizeof(struct Element)); dst = elem_arr; for (i=0; i