diff options
Diffstat (limited to 'sorting.c')
-rw-r--r-- | sorting.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sorting.c b/sorting.c new file mode 100644 index 0000000..e4bfdaf --- /dev/null +++ b/sorting.c @@ -0,0 +1,25 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" +#ifndef TEST + + +int +doublepcmp(const void *avp, const void *bvp) +{ + const double *ap = avp; + const double *bp = bvp; + return (*ap > *bp) - (*ap < *bp); +} + + +#else + + +int +main(void) +{ + return 0; /* TODO add test */ +} + + +#endif |