diff options
author | David 'Digit' Turner <digit@google.com> | 2009-12-02 17:38:41 -0800 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-12-03 11:40:15 -0800 |
commit | 754c178ae551aedcbbfd3bfd1c1c3b710d9ad989 (patch) | |
tree | 8dc0298a0c8bcbd93b92668e7b888a608e26d229 /libc/include | |
parent | e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47 (diff) | |
download | bionic-754c178ae551aedcbbfd3bfd1c1c3b710d9ad989.zip bionic-754c178ae551aedcbbfd3bfd1c1c3b710d9ad989.tar.gz bionic-754c178ae551aedcbbfd3bfd1c1c3b710d9ad989.tar.bz2 |
Add qsort_r() implementation to the C library.
NOTE: This replaces qsort.c with the FreeBSD version. While
the patch changes the source, it should not alter the
implementation that should use the exact same algorithm.
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index acfe694..4f18833 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -101,6 +101,7 @@ extern void * bsearch(const void *key, const void *base0, int (*compar)(const void *, const void *)); extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); +extern void qsort_r(void *a, size_t n, size_t es, void *thunk, int (*)(void *, const void *, const void *)); extern long jrand48(unsigned short *); extern long mrand48(void); |