alphasort.c 198 B

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