sync with OpenBSD -current
This commit is contained in:
parent
4b49aefbb1
commit
1fd36b57f8
945 changed files with 81965 additions and 59988 deletions
|
@ -125,32 +125,3 @@ uInternalError(const char *s, ...)
|
|||
|
||||
/***====================================================================***/
|
||||
|
||||
#ifndef HAVE_STRCASECMP
|
||||
int
|
||||
uStrCaseCmp(const char *str1, const char *str2)
|
||||
{
|
||||
char buf1[512], buf2[512];
|
||||
|
||||
char c, *s;
|
||||
|
||||
register int n;
|
||||
|
||||
for (n = 0, s = buf1; (c = *str1++); n++) {
|
||||
if (isupper(c))
|
||||
c = tolower(c);
|
||||
if (n > 510)
|
||||
break;
|
||||
*s++ = c;
|
||||
}
|
||||
*s = '\0';
|
||||
for (n = 0, s = buf2; (c = *str2++); n++) {
|
||||
if (isupper(c))
|
||||
c = tolower(c);
|
||||
if (n > 510)
|
||||
break;
|
||||
*s++ = c;
|
||||
}
|
||||
*s = '\0';
|
||||
return (strcmp(buf1, buf2));
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue