Updated: April 19, 2023 |
Compare two directory entries
#include <dirent.h> int alphasort( const struct dirent **d1, const struct dirent **d2);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The alphasort() function alphabetically compares two directory entries. You can use it as the compar argument to scandir().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |