1 2 3 4 5 6
#include <dirent.h> #include <string.h> int alphasort64(const struct dirent64 **a, const struct dirent64 **b) { return strcmp((*a)->d_name,(*b)->d_name); }