Simplified the stricmp function.

This commit is contained in:
skarg
2008-01-09 15:46:05 +00:00
parent 83da7c5b3b
commit 1397585e71
+4 -2
View File
@@ -42,10 +42,12 @@ int stricmp(const char *s1, const char *s2)
unsigned char c1,c2;
do {
c1 = *s1++;
c2 = *s2++;
c1 = *s1;
c2 = *s2;
c1 = (unsigned char) tolower( (unsigned char) c1);
c2 = (unsigned char) tolower( (unsigned char) c2);
s1++;
s2++;
} while((c1 == c2) && (c1 != '\0'));
return (int) c1-c2;