#ifndef __STUDENT_H__ #define __STUDENT_H__ /** * student.h * A simple representation of students. */ // +---------+-------------------------------------------------------- // | Headers | // +---------+ #include // For FILE // +-------+---------------------------------------------------------- // | Types | // +-------+ /** * A simple representation of students. */ struct student { char *fname; // First name char *lname; // Last name char *sid; // Student id number double gpa; // Grade point average int debt; // Debt to the College, in cents }; // +-----------+------------------------------------------------------ // | Functions | // +-----------+ /** * student_new (fname, lname, sid, gpa, debt) * Create a new student. Returns NULL upon failure. */ struct student *student_new (char *fname, char *lname, char *sid, double gpa, int debt); /** * student_print (student, fp) * Print information on a student to the given destination. */ void student_print (struct student *student, FILE *fp); #endif // __STUDENT_H__