make/test_qsort_r.c@aa8621b58cd7
make/test_qsort_r.c
Mon, 22 Dec 2025 00:20:41 +0100
- author
- Mike Becker <universe@uap-core.de>
- date
- Mon, 22 Dec 2025 00:20:41 +0100
- changeset 1650
- aa8621b58cd7
- parent 1620
-
bf5d647f939d
- permissions
- -rw-r--r--
define own cx_thread_local macro that is compatible to C11/C17, C23, and MSVC
#define _GNU_SOURCE
#include <stdlib.h>
static int f(const void *a, const void *b, void *c) {
return 0; // not important what it does for this test
}
int main() {
int x[4] = {3, 1, 4, 0};
int z = 47;
void *c = &z;
qsort_r(x, 4, sizeof(int), f, c);
return 0;
}