i have two problems actually:
1) in c++, you can use the 'getline' function to read in a line that is terminated with a specified delimiter..is this at all possible in c? I am assuming that i'd have to create a loop and use getc (this is all reading input in from a file).
2) this line of code does not seem to compile...
sarray[index]=(struct student*)malloc(sizeof(struct student));
student is a struct, sarray is an array of students and index is initialed to 0 at this point...any input as to what i am doing wrong? the error is saying that is an assignment mismatch.