#ifndef __STUDENT_H__ #define __STUDENT_H__ typedef struct student_s { char *name; unsigned int id; } Student; // Allocates a new student. // // Returns: // -- A non-null person with allocated fields. // -- A NULL pointer in the event of a memory allocation error. Student *student_new(); // Deletes a student. // // Returns: // -- zero on success. // -- -1 in the event of an error. int student_delete(Student *); // Gets the student's name. const char *student_get_name(const Student *s); // Returns a string description of the Student. char *student_toString(const Student *s); unsigned int student_get_id(Student *s); int student_set_id(Student *, unsigned int id); #endif // __STUDENT_H__