TP 13 exo1: Give more explicits name to callbacks
[TD_C.git] / TP_13 / exo1 / lib / sort.h
index 8986302931f4fe68402a8acc9b3f47ce34732803..3c499f7947b4e4835735c25345c3a4257e404652 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdbool.h>
 
-typedef bool(*criteria_cb)(int a, int b);
+typedef bool(*s_criteria_cb)(int a, int b);
 
 /* sort criteria */
 bool ascending(int a, int b);
@@ -11,6 +11,6 @@ bool descending(int a, int b);
 bool ascending_and_even(int a, int b);
 bool ascending_and_odd(int a, int b);
 
-void sort_bubble_array(int* array, unsigned length, criteria_cb criteria);
+void sort_bubble_array(int* array, unsigned length, s_criteria_cb sort_criteria);
 
 #endif /* SORT_H */