[svn-upgrade] Integrating new upstream version, shadow (19990709)

This commit is contained in:
nekral-guest
2007-10-07 11:44:02 +00:00
parent 9c72ed9062
commit 45c6603cc8
350 changed files with 89554 additions and 0 deletions

25
lib/strcasecmp.c Normal file
View File

@@ -0,0 +1,25 @@
#include <config.h>
#include "defines.h"
#include <ctype.h>
#include "rcsid.h"
RCSID("$Id: strcasecmp.c,v 1.1 1999/07/09 18:02:43 marekm Exp $")
/*
* strcasecmp - compare strings, ignoring case
*/
char *
strcasecmp(const char *s1, const char *s2)
{
int ret;
for (;;) {
ret = tolower(*s1) - tolower(*s2);
if (ret || *s1 == '\0' || *s2 == '\0')
break;
s1++;
s2++;
}
return ret;
}