summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 15:38:54 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 15:38:54 -0500
commitbaae904ed2c97ba5c701442ec5ef6900715f785d (patch)
tree6e6c10265624510dd73bb8bd0213a59fc02e3617 /util.c
parentc37d493327ded5952f46cbf39aef920e47c1d7d9 (diff)
switch from scancodes to keycodes
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);