alphasort.c 245 B

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