I didn't see the second calloc() down below, I thought that was your only memory allocation.
You're not passing a reference to anything. You are passing a pointer to a pointer, but in the...
Type: Posts; User: bithub
I didn't see the second calloc() down below, I thought that was your only memory allocation.
You're not passing a reference to anything. You are passing a pointer to a pointer, but in the...
temp = realloc(filelist, (items+1) * sizeof(*temp));How many bytes of memory do you think this is allocating? I bet if you printed out the value of items and sizeof(*temp), you would be surprised.
...