summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/dive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index eaca66626..ae980947a 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -30,6 +30,11 @@ static inline int same_string(const char *a, const char *b)
return !strcmp(a ?: "", b ?: "");
}
+static inline int same_string_caseinsensitive(const char *a, const char *b)
+{
+ return !strcasecmp(a ?: "", b ?: "");
+}
+
static inline char *copy_string(const char *s)
{
return (s && *s) ? strdup(s) : NULL;