LibC: Add POSIX spec comments for qsort

This commit is contained in:
Brian Gianforcaro 2021-12-20 01:29:46 -08:00 committed by Brian Gianforcaro
parent e9c46a23c8
commit 6db9b6cf79
Notes: sideshowbarker 2024-07-17 22:25:49 +09:00

View file

@ -59,6 +59,7 @@ private:
size_t m_element_size;
};
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/qsort.html
void qsort(void* bot, size_t nmemb, size_t size, int (*compar)(const void*, const void*))
{
if (nmemb <= 1) {