summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index f09da3c..d20077b 100644
--- a/util.c
+++ b/util.c
@@ -298,6 +298,10 @@ int strcmp_case_insensitive(const char *a, const char *b) {
#endif
}
+bool streq_case_insensitive(const char *a, const char *b) {
+ return strcmp_case_insensitive(a, b) == 0;
+}
+
int str_qsort_case_insensitive_cmp(const void *av, const void *bv) {
const char *const *a = av, *const *b = bv;
return strcmp_case_insensitive(*a, *b);