home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
lib
/
dlibssrc
/
stricmp.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1987-06-14
|
314 b
|
16 lines
int stricmp(str1, str2)
register char *str1;
register char *str2;
/*
* Compare strings as with strcmp(), but ignore the case of any
* alphabetic characters.
*/
{
register char c1, c2;
while((c1 = tolower(*str1++)) == (c2 = tolower(*str2++)))
if(c1 == '\0')
return(0);
return(c1 - c2);
}