make/test_qsort_r.c

changeset 1620
bf5d647f939d
parent 1413
c5a225d7228c
equal deleted inserted replaced
1619:0db02ab1457c 1620:bf5d647f939d
1 #define _GNU_SOURCE
2 #include <stdlib.h>
3
4 static int f(const void *a, const void *b, void *c) {
5 return 0; // not important what it does for this test
6 }
7
8 int main() {
9 int x[4] = {3, 1, 4, 0};
10 int z = 47;
11 void *c = &z;
12 qsort_r(x, 4, sizeof(int), f, c);
13 return 0;
14 }

mercurial