repositories
/
TD_C.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
57b51decddee5570580cb92e3b3c8fdcbd4f4c7f
[TD_C.git]
/
sort.h
1
#ifndef SORT_H
2
#define SORT_H
3
4
#include <stdbool.h>
5
6
typedef
bool
(*
criteria_cb
)(
int
a
,
int
b
);
7
8
/* sort criteria */
9
bool
ascending
(
int
a
,
int
b
);
10
bool
descending
(
int
a
,
int
b
);
11
12
void
sort_array
(
int
*
array
,
int
length
,
criteria_cb criteria
);
13
14
#endif
/* SORT_H */