#ifndef A33_DEPARTMENT_H #define A33_DEPARTMENT_H 1 #include "global_consts.h" struct Department { uint id; uint num_accepted; uint topic1, topic2; /* ranging from 1 to N_EXAMS */ static const uint cf1 = 13; static const uint cf2 = 7; }; void read_department_from_file(FILE* f, Department* d) { fscanf(f, "%u", &d->id); fscanf(f, "%u", &d->num_accepted); fscanf(f, "%u", &d->topic1); fscanf(f, "%u", &d->topic2); } #endif /* A33_DEPRTMENT_H */