From 0bb685ea05f554a07fbc98f861eef6dc4f79eb31 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 28 Aug 2023 18:33:29 -0400 Subject: mapScore: Make case-insensitive --- mapScore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mapScore.c') diff --git a/mapScore.c b/mapScore.c index 21b0490..f003bc9 100644 --- a/mapScore.c +++ b/mapScore.c @@ -1,5 +1,6 @@ #include #include +#include #define BUFSIZE 1024 char buffer[BUFSIZE]; @@ -14,9 +15,12 @@ void makeMap(FILE *f) { case '\t': x++; break; case '\n': y++; x=0; break; default: + explicit_label: map[c][0] = x; map[c][1] = y; map[c][2] = 1; + c = toupper(c); + if (map[toupper(c)][2] == 0) goto explicit_label; break; } } -- cgit 1.4.1