15 lines
324 B
C
15 lines
324 B
C
|
#ifndef lcthw_DArray_algos_h
|
||
|
#define lcthw_DArray_algos_h
|
||
|
|
||
|
#include <lcthw/darray.h>
|
||
|
|
||
|
typedef int (*DArray_compare)(const void *a, const void *b);
|
||
|
|
||
|
int DArray_qsort(DArray *array, DArray_compare cmp);
|
||
|
|
||
|
int DArray_heapsort(DArray *array, DArray_compare cmp);
|
||
|
|
||
|
int DArray_mergesort(DArray *array, DArray_compare cmp);
|
||
|
|
||
|
#endif
|