summaryrefslogtreecommitdiffstats
path: root/src/core/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/string.c')
-rw-r--r--src/core/string.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/string.c b/src/core/string.c
index 87c505704..040a77859 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -189,6 +189,14 @@ int strncmp(const char * cs,const char * ct,size_t count)
}
#endif
+#ifndef __HAVE_ARCH_STRCASECMP
+int strcasecmp(const char *a, const char *b)
+{
+ while (*a && *b && (*a & ~0x20) == (*b & ~0x20)) {a++; b++; }
+ return((*a & ~0x20) - (*b & ~0x20));
+}
+#endif
+
#ifndef __HAVE_ARCH_STRCHR
/**
* strchr - Find the first occurrence of a character in a string