We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b7d42 commit 673047eCopy full SHA for 673047e
libc/src/stdlib/qsort_r.h
@@ -14,10 +14,9 @@
14
15
namespace LIBC_NAMESPACE_DECL {
16
17
-// This qsort_r uses the glibc argument ordering instead of the BSD argument
18
-// ordering (which puts arg before the function pointer). Putting arg after the
19
-// function pointer more closely matches the ordering for qsort_s, which is the
20
-// standardized equivalent of qsort_r.
+// This qsort_r uses the POSIX 1003.1-2024 argument ordering instead of the
+// historical BSD argument ordering (which put arg before the function pointer).
+// https://www.austingroupbugs.net/view.php?id=900
21
22
void qsort_r(void *array, size_t array_size, size_t elem_size,
23
int (*compare)(const void *, const void *, void *), void *arg);
0 commit comments