I also have a question or two about the code you posted earlier:
in this struct:
you have int scanned, but thats the only place I ever see 'scanned' in the whole code, what is it for?Code:struct Student * getOneStudentFromData ( ) {
struct Student * aStudentPtr;
int scanned, theId, theTest1, theTest2, theTest3, theHwCount, theHwPoints;
char theName [7];
char cr;
fscanf (infile, "%d%s%d%d%d%d%d%c",
&theId, theName, &theTest1, &theTest2, &theTest3,
&theHwCount, &theHwPoints, &cr);
and what does the char cr refer to?