#ifndef __STUDENT_COMPARE__ #define __STUDENT_COMPARE__ /** * student-compare.h * Some simple comparators for students. */ // +-------+---------------------------------------------------------- // | Notes | // +-------+ /* All comparators return - a negative number, for "s precedes t" - zero, for "s equals t" - a positive numbe, for "s follows t" The names should make their purpose obvious. */ // +-------------+---------------------------------------------------- // | Comparators | // +-------------+ int compare_students_by_debt (struct student *s, struct student *t); int compare_students_by_gpa (struct student *s, struct student *t); int compare_students_by_name (struct student *s, struct student *t); int compare_students_by_student_id (struct student *s, struct student *t); #endif // __STUDENT_COMPARE__