Ahh! I see, so you need to allocate space for each structure that the pointer points to.
I ended up using:
students[i] = (struct studentInfo *)malloc(sizeof(struct studentInfo));
And now everything works fine. Thank you.
Last edited by OutOfReach; Nov 28th, 2008 at 4:16 pm.