alphasort.c 218 B

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