diff options
Diffstat (limited to 'src/strings/strncasecmp.c')
| -rw-r--r-- | src/strings/strncasecmp.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/strings/strncasecmp.c b/src/strings/strncasecmp.c deleted file mode 100644 index 7942be88..00000000 --- a/src/strings/strncasecmp.c +++ /dev/null @@ -1,36 +0,0 @@ -#if 0 - -#include <strings.h> -#include <ctype.h> - -int strncasecmp(const char *s1, const char *s2, size_t n) -{ - while (n > 0 && *s1 && *s2) { - char c1 = tolower(*s1); - char c2 = tolower(*s2); - if (c1 != c2) { - return c1 - c2; - } - n--; - } - - if (n == 0) { - return 0; - } - - if (*s1) { - return -1; - } else if (*s2) { - return 1; - } - - return 0; -} - -/* -XOPEN(400) -POSIX(200809) -*/ - - -#endif |
