student.h 381 B

123456789101112131415161718
  1. /*
  2. * Do not modify this file.
  3. */
  4. #ifndef _STUDENT_H_
  5. #define _STUDENT_H_
  6. typedef struct listnode
  7. {
  8. int ID;
  9. char * name;
  10. struct listnode * next;
  11. } Student;
  12. Student * readStudent(char * infile);
  13. int writeStudent(char * outfile, Student * stu);
  14. Student * sortStudentbyID(Student * stu);
  15. Student * sortStudentbyName(Student * stu);
  16. void freeStudent(Student * stu);
  17. #endif