This is alphasort.c in view mode; [Download] [Up]
/*
** ALPHASORT
** Trivial sorting predicate for scandir; puts entries in alphabetical order.
*/
#include <sys/types.h>
#include "pdftw.h"
#ifdef RCSID
static char RCS[] = "$Header: /proj/wais/wais-8-b2/lib/RCS/alphasort.c,v 1.1 91/07/17 16:37:56 jonathan Exp $";
#endif /* RCSID */
int
alphasort(d1, d2)
struct dirent **d1;
struct dirent **d2;
{
return strcmp(d1[0]->d_name, d2[0]->d_name);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.