home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
459.lha
/
SERIAL
/
strcmpu.c
< prev
Wrap
Text File
|
1990-12-06
|
475b
|
19 lines
/************************************************************************/
int strcmpu( s, t )
/* returns: -1 is s < t
0 if s = t
1 if s > t
without regard to case */
char s[], t [] ;
{
int i;
i = 0 ;
while( toupper(s[i]) == toupper(t[i]) ) {
if( s[i++] == '\0' ) {
return( 0 ) ;
}
}
return( toupper(s[i]) - toupper(t[i]) ) ;
}
/************************************************************************/