home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
ALPHASOR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
304b
|
17 lines
/*
** ALPHASORT
** Trivial sorting predicate for scandir; puts entries in alphabetical order.
*/
#include <sys/types.h>
#include <sys/dir.h>
#include <string.h>
int
alphasort(d1, d2)
struct direct **d1;
struct direct **d2;
{
return strcmp(d1[0]->d_name, d2[0]->d_name);
}