blob: d978488a43ad0f4fa3881abacfb857cd4989e120 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <ctype.h>
#include "dietfeatures.h"
int strcasecmp(register const char *s,register const char *t) {
register char x;
for (;;) {
x = tolower(*s); if (x != tolower(*t)) break; if (!x) break; ++s; ++t;
#ifndef WANT_SMALL_STRING_ROUTINES
x = tolower(*s); if (x != tolower(*t)) break; if (!x) break; ++s; ++t;
x = tolower(*s); if (x != tolower(*t)) break; if (!x) break; ++s; ++t;
x = tolower(*s); if (x != tolower(*t)) break; if (!x) break; ++s; ++t;
#endif
}
return ((int)(unsigned int)(unsigned char) x)
- ((int)(unsigned int)(unsigned char) *t);
}
|