home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / lib / alphasort.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-04  |  586 b   |  27 lines

  1. #include "../config.h"
  2.  
  3. #ifndef HAVE_ALPHASORT
  4. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  5.  
  6. /*
  7. **  ALPHASORT
  8. **  Trivial sorting predicate for scandir; puts entries in alphabetical order.
  9. */
  10.  
  11. #include "../ir/cdialect.h"
  12. /* #include <sys/types.h> */
  13. #include "pdftw.h"
  14.  
  15. #ifdef    RCSID
  16. static char RCS[] = "$Header: /usr/local/ls6/src+data/src/freeWAIS-sf/lib/RCS/alphasort.c,v 1.2 1994/08/05 07:13:30 pfeifer Exp $";
  17. #endif    /* RCSID */
  18.  
  19. int
  20. alphasort(d1, d2)
  21.     struct dirent **d1;
  22.     struct dirent **d2;
  23. {
  24.     return strcmp(d1[0]->d_name, d2[0]->d_name);
  25. }
  26. #endif /* HAVE_ALPHASORT */
  27.