UNIXworkcode

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 } 15