#include <dirent.h> int alphasort(const struct dirent **a, const struct dirent **b);
The alphasort interface is expected to disappear from a future version of the LSB; applications should provide their own routine to sort filenames.
The alphasort() function can be used as the comparison function for the scandir() function to sort the directory entries into alphabetical order. Its parameters are the two directory entries, a and b, to compare.
The alphasort() function returns an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
The LSB never has contained scandir().