4 * Compare two strings ignoring case.
6 * Taken from GLIBC 2.2.5. Original code is copyrighted "Free
7 * Software Foundation" and published under the GNU Lesser General
15 int as_strcmpi (const char *s1, const char *s2)
17 const unsigned char *p1 = (const unsigned char *) s1;
18 const unsigned char *p2 = (const unsigned char *) s2;
36 int as_strncmpi (const char *s1, const char *s2, size_t n)
38 const unsigned char *p1 = (const unsigned char *) s1;
39 const unsigned char *p2 = (const unsigned char *) s2;
42 if ((p1 == p2) || (n == 0))
52 while ((c1 == c2) && --n);