Move callback functions into the same file
[TD_C.git] / TP_13 / exo1 / lib / sort.c
index 78625b652f804270487b101ecc07b024dbddc55e..0bd005ed639c0921fcc0ecedab050a2df352137d 100644 (file)
@@ -1,6 +1,15 @@
 #include "utils.h"
 #include "sort.h"
 
+bool is_even(int a) {
+    return (a % 2 == 0);
+}
+
+bool is_odd(int a) {
+    return (a % 2 != 0);
+
+}
+
 bool ascending(int a, int b) {
     return a > b;
 }