aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-04-28 14:58:38 +0100
committerIan C <ianc@noddybox.co.uk>2016-04-28 14:58:38 +0100
commit6b970e749e720404d08cec565fe0157d20fdeaef (patch)
treedc80919782dcd3d7da2bca104a85adde996cac94 /src/util.c
parent239edccf43ff39e93a96c4c75af9e6772f55efe2 (diff)
First pass of compilable 65c816 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)