mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
399 B
17 lines
399 B
#include "case.h" |
|
|
|
int case_diffs(register const char *s,register const char *t) |
|
{ |
|
register unsigned char x; |
|
register unsigned char y; |
|
|
|
for (;;) { |
|
x = *s++ - 'A'; |
|
if (x <= 'Z' - 'A') x += 'a'; else x += 'A'; |
|
y = *t++ - 'A'; |
|
if (y <= 'Z' - 'A') y += 'a'; else y += 'A'; |
|
if (x != y) break; |
|
if (!x) break; |
|
} |
|
return ((int)(unsigned int) x) - ((int)(unsigned int) y); |
|
}
|
|
|