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...
Type: Posts; User: Kenshin
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...
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 *));
}