repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move callback functions into the same file
[TD_C.git]
/
TP_13
/
exo1
/
lib
/
sort.c
diff --git
a/TP_13/exo1/lib/sort.c
b/TP_13/exo1/lib/sort.c
index 78625b652f804270487b101ecc07b024dbddc55e..0bd005ed639c0921fcc0ecedab050a2df352137d 100644
(file)
--- a/
TP_13/exo1/lib/sort.c
+++ b/
TP_13/exo1/lib/sort.c
@@
-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;
}