6 typedef bool(*c_criteria_cb
)(int a
);
11 typedef bool(*s_criteria_cb
)(int a
, int b
);
14 bool ascending(int a
, int b
);
15 bool descending(int a
, int b
);
16 bool ascending_and_even(int a
, int b
);
17 bool ascending_and_odd(int a
, int b
);
19 void sort_bubble_array(int* array
, unsigned length
, s_criteria_cb sort_criteria
);