[IPV4]: Fix up lots of little whitespace indentation stuff in fib_trie.
[linux/fpc-iii.git] / arch / sh / lib / strcasecmp.c
blob4e57a216feafe4ee5a8710837f0ad66592d06dda
1 /*
2 * linux/arch/alpha/lib/strcasecmp.c
3 */
5 #include <linux/string.h>
8 /* We handle nothing here except the C locale. Since this is used in
9 only one place, on strings known to contain only 7 bit ASCII, this
10 is ok. */
12 int strcasecmp(const char *a, const char *b)
14 int ca, cb;
16 do {
17 ca = *a++ & 0xff;
18 cb = *b++ & 0xff;
19 if (ca >= 'A' && ca <= 'Z')
20 ca += 'a' - 'A';
21 if (cb >= 'A' && cb <= 'Z')
22 cb += 'a' - 'A';
23 } while (ca == cb && ca != '\0');
25 return ca - cb;