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