The libc implementation
Martin ‘Solar’ Baute
Public Domain
qsort.c | The libc implementation |
Todo’s | |
Stack usage is log2( nmemb ) (minus what T shaves off the worst case). | Worst-case nmemb is platform dependent and should probably be configured through _PDCLIB_config.h. |
Functions | |
qsort | Sorts an array in memory |
Sorts an array in memory
void qsort( void * base, size_t nmemb, size_t size, int (*compar)( const void *, const void * ) )