]>
Commit | Line | Data |
---|---|---|
b061a43b A |
1 | #include <stdlib.h> |
2 | #include <Block_private.h> | |
3 | ||
4 | typedef int cmp_t(const void *, const void *); | |
5 | ||
6 | void | |
7 | qsort_b(void *base, size_t nel, size_t width, cmp_t ^cmp_b) | |
8 | { | |
9 | void *cmp_f = ((struct Block_layout *)cmp_b)->invoke; | |
10 | qsort_r(base, nel, width, cmp_b, (void*)cmp_f); | |
11 | } |