home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d179
/
launch.lha
/
Launch
/
util.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-02-25
|
257b
|
19 lines
#include <ctype.h>
dictcmp(s1, s2)
char *s1;
char *s2;
{
while(*s1 && *s2) {
char c1 = *s1;
char c2 = *s2;
if(isupper(c1)) c1 = tolower(c1);
if(isupper(c2)) c2 = tolower(c2);
if(c1 != c2)
return c1-c2;
s1++;
s2++;
}
return *s1 - *s2;
}