]> git.saurik.com Git - apple/libc.git/blame - stdlib/qsort_b.c
Libc-1244.1.7.tar.gz
[apple/libc.git] / stdlib / qsort_b.c
CommitLineData
b061a43b
A
1#include <stdlib.h>
2#include <Block_private.h>
3
4typedef int cmp_t(const void *, const void *);
5
6void
7qsort_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}