Skip to content

Commit 673047e

Browse files
authored
qsort_r.h: qsort_r() is POSIX now. (#138545)
1 parent f5b7d42 commit 673047e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libc/src/stdlib/qsort_r.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

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.
17+
// This qsort_r uses the POSIX 1003.1-2024 argument ordering instead of the
18+
// historical BSD argument ordering (which put arg before the function pointer).
19+
// https://www.austingroupbugs.net/view.php?id=900
2120

2221
void qsort_r(void *array, size_t array_size, size_t elem_size,
2322
int (*compare)(const void *, const void *, void *), void *arg);

0 commit comments

Comments
 (0)