+++ /dev/null
-/* strcmpi.c */\r
-\r
-/*\r
- * Compare two strings ignoring case.\r
- *\r
- * Taken from GLIBC 2.2.5. Original code is copyrighted "Free\r
- * Software Foundation" and published under the GNU Lesser General\r
- * Public License.\r
- * \r
- */\r
-\r
-#include <ctype.h>\r
-#include "strcmpi.h"\r
-\r
-int as_strcmpi (const char *s1, const char *s2)\r
-{\r
- const unsigned char *p1 = (const unsigned char *) s1;\r
- const unsigned char *p2 = (const unsigned char *) s2;\r
- unsigned char c1, c2;\r
-\r
- if (p1 == p2)\r
- return 0;\r
-\r
- do\r
- {\r
- c1 = tolower (*p1++);\r
- c2 = tolower (*p2++);\r
- if (c1 == '\0')\r
- break;\r
- }\r
- while (c1 == c2);\r
- \r
- return c1 - c2;\r
-}\r
-\r