LibC: Implement qsort_r

This is not really required by anything but i've seen few ports
optionally use it if available. This was trivial to implement so why not
add it :^)
This commit is contained in:
2026-07-05 01:55:57 +03:00
parent 58c58bcccf
commit 3e16e69602
2 changed files with 17 additions and 6 deletions

View File

@@ -84,6 +84,7 @@ int posix_openpt(int oflag);
char* ptsname(int fildes);
int putenv(char* string);
void qsort(void* base, size_t nel, size_t width, int (*compar)(const void*, const void*));
void qsort_r(void* base, size_t nel, size_t width, int (*compar)(const void*, const void*, void*), void* arg);
int rand(void);
int rand_r(unsigned* seed);
long random(void);