home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
util
/
cxref
/
stricmp.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1988-06-01
|
237 b
|
13 lines
int stricmp(a, b)
char *a, *b;
{
int Result;
while (((Result = toupper(*a++) - toupper(*b++)) == 0) && (*(a - 1) != 0));
if (Result < 0)
Result = -1;
if (Result > 0)
Result = 1;
return (Result);
}