34 #if defined(LIBC_SCCS) && !defined(lint)
35 static char sccsid[] =
"@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93";
43 const unsigned char *us1 = (
const unsigned char *) s1;
44 const unsigned char *us2 = (
const unsigned char *) s2;
46 while (tolower(*us1) == tolower(*us2++))
49 return (tolower(*us1) - tolower(*--us2));
55 const unsigned char *us1 = (
const unsigned char *) s1;
56 const unsigned char *us2 = (
const unsigned char *) s2;
59 if (tolower(*us1) != tolower(*us2++))
60 return (tolower(*us1) - tolower(*--us2));
int strncasecmp(const char *s1, const char *s2, size_t n)
int strcasecmp(const char *s1, const char *s2)