home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari FTP
/
ATARI_FTP_0693.zip
/
ATARI_FTP_0693
/
Mint
/
mntlib25.zoo
/
alphasor.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-05
|
299b
|
17 lines
/*
** ALPHASORT
** Trivial sorting predicate for scandir; puts entries in alphabetical order.
*/
#include <types.h>
#include <dirent.h>
#include <string.h>
int
alphasort(d1, d2)
struct dirent **d1;
struct dirent **d2;
{
return strcmp(d1[0]->d_name, d2[0]->d_name);
}