1 /* 2 * Copyright (C) 1991, 1992 Linus Torvalds 3 */ 4 5 #include <xen/string.h> 6 #include <xen/ctype.h> 7 8 int (strcasecmp)(const char *s1, const char *s2) 9 { 10 int c1, c2; 11 12 do 13 { 14 c1 = tolower(*s1++); 15 c2 = tolower(*s2++); 16 } while ( c1 == c2 && c1 != 0 ); 17 18 return c1 - c2; 19 } 20 21 /* 22 * Local variables: 23 * mode: C 24 * c-file-style: "BSD" 25 * c-basic-offset: 8 26 * tab-width: 8 27 * indent-tabs-mode: t 28 * End: 29 */ 30