home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
uupc.lzh
/
uupc
/
strnicmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-16
|
628b
|
35 lines
/*
* strnicmp, memset
*
* Amiga (Manx) Library
*
* $Id: strnicmp.c,v 1.2 90/01/16 10:27:35 crash Exp Locker: crash $
*/
#ifndef lint
static char RCSid[] = "$Id: strnicmp.c,v 1.2 90/01/16 10:27:35 crash Exp Locker: crash $";
#endif /* lint */
#ifndef LATTICE
#include <ctype.h>
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 );
}
char *memset(s, c, l)
register char *s;
register int c;
register unsigned int l;
{
while (l-- > 0)
*s++ = (char) c;
return( s );
}
#endif /* !LATTICE */