Search:

Type: Posts; User: bithub

Search: Search took 0.03 seconds.

  1. Replies
    14
    Views
    10,737

    I didn't see the second calloc() down below, I...

    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...
  2. Replies
    14
    Views
    10,737

    temp = realloc(filelist, (items+1) *...

    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.
    ...
Results 1 to 2 of 2