alphasort.c 216 B

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