2
* \file rpmio/strcasecmp.c
9
int xstrcasecmp(const char * s1, const char * s2)
20
c1 = xtolower (*p1++);
21
c2 = xtolower (*p2++);
27
return (int)(c1 - c2);
30
int xstrncasecmp(const char *s1, const char *s2, size_t n)
36
if (p1 == p2 || n == 0)
41
c1 = xtolower (*p1++);
42
c2 = xtolower (*p2++);
43
if (c1 == '\0' || c1 != c2)
47
return (int)(c1 - c2);