mailing list of musl libc
 help / color / mirror / code / Atom feed
fe408fb1738821ef87a1ba04e7770a48da5ab3d7 blob 308 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#define _GNU_SOURCE
#include <stdlib.h>

typedef int (*cmpfun)(const void *, const void *);

static int wrapper_cmp(const void *v1, const void *v2, void *cmp)
{
	return ((cmpfun)cmp)(v1, v2);
}

void qsort(void *base, size_t nel, size_t width, cmpfun cmp)
{
	__qsort_r(base, nel, width, wrapper_cmp, cmp);
}
debug log:

solving fe408fb1 ...
found fe408fb1 in https://inbox.vuxu.org/musl/20210309210213.29539-1-ericonr@disroot.org/

applying [1/1] https://inbox.vuxu.org/musl/20210309210213.29539-1-ericonr@disroot.org/
diff --git a/src/stdlib/qsort_nr.c b/src/stdlib/qsort_nr.c
new file mode 100644
index 00000000..fe408fb1

Checking patch src/stdlib/qsort_nr.c...
Applied patch src/stdlib/qsort_nr.c cleanly.

index at:
100644 fe408fb1738821ef87a1ba04e7770a48da5ab3d7	src/stdlib/qsort_nr.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).