From 6b970e749e720404d08cec565fe0157d20fdeaef Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 28 Apr 2016 14:58:38 +0100 Subject: First pass of compilable 65c816 mode. --- src/util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util.c') 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) -- cgit v1.2.3