Search:

Type: Posts; User: Kenshin

Search: Search took 0.00 seconds.

  1. Replies
    20
    Views
    8,602

    Ah, you're right, I'm sorry. :o Just so I...

    Ah, you're right, I'm sorry. :o

    Just so I understand you, you're saying that if you want an array of NULL pointers, you might as well just malloc it yourself and then have a loop to fill with...
  2. Replies
    20
    Views
    8,602

    I think your usage of calloc may be causing the...

    I think your usage of calloc may be causing the problem. How about trying:



    for (i = 0; i < 10; i++)
    {
    pSections[i] = calloc(str[i], sizeof(MyStruct *));
    }
Results 1 to 2 of 2