aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 0068540..bf065ef 100644
--- a/src/util.c
+++ b/src/util.c
@@ -136,6 +136,12 @@ int CompareString(const char *a, const char *b)
}
+int CompareChar(char a, char b)
+{
+ return tolower((unsigned char)a) == tolower((unsigned char)b);
+}
+
+
int CompareStart(const char *a, const char *b)
{
while(*a && *b)