home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
libfake
/
strnicmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-25
|
629b
|
33 lines
/*
* strnicmp
*
* Amiga (Manx) Library
*/
#ifndef lint
static char RCSid_strnicmp[] =
"$Id: strnicmp.c,v 1.1 90/12/25 15:23:23 crash Exp Locker: crash $";
#endif /* lint */
#ifndef LATTICE
#define _tolower(x) (((x) & 0x5F) | 0x20)
#define _toupper(x) ((x) & 0x5F)
strnicmp(a, b, l)
register char *a, *b;
register int l;
{
while (l > 0 && *a && *b && (_toupper(*a) == _toupper(*b)))
l--, a++, b++;
return( l ? (_toupper(*a) - _toupper(*b)) : 0 );
}
stricmp(a, b)
register char *a, *b;
{
while (*a && *b && (_toupper(*a) == _toupper(*b)))
a++, b++;
return( _toupper(*a) - _toupper(*b) );
}
#endif /* !LATTICE */