diff options
Diffstat (limited to 'sorters.h')
-rw-r--r-- | sorters.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sorters.h b/sorters.h new file mode 100644 index 0000000..1a2397a --- /dev/null +++ b/sorters.h @@ -0,0 +1,11 @@ +#include <stddef.h> + +typedef int (*cmpfun)(const void *, const void *); +typedef void (*sorter)(void *, size_t, size_t, cmpfun); + +void qsort_musl(void *, size_t, size_t, cmpfun); + +extern const struct sorter { + const char *name; + sorter func; +} sorters[]; |