There is a problem with the points you obtained at your exams in January : the averages have been lost in the file where all the points were stored. They are stored in structures defined as follow :
typedef struct points { int NOMA; float LEPL1103; float LEPL1203; float LEPL1108; float LEPL1302; float LEPL1402; float average; } points_t;
As averages are really important to sort the file and then to assign the merits, we ask you to get the structures from the file, compute the average of each student based on his/her five exams, sort the students comparing averages and then write the new sorted structures back in the file. For this, you have to write two functions : a compare function and the main function that will do the rest.