summaryrefslogtreecommitdiff
path: root/src/strings/strncasecmp.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 15:45:38 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 15:45:38 -0500
commitbafccb2f57ac1a1852be2d6aafe33cf02d1630c1 (patch)
treea6164b42b37b941cb64bbc3db8af7a1daf381ace /src/strings/strncasecmp.c
parent910a86c095b6d7311d73fa88a632aa9b673243b2 (diff)
update dependencies
Diffstat (limited to 'src/strings/strncasecmp.c')
-rw-r--r--src/strings/strncasecmp.c36
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