From 8a19547957a86bed3f58c9abc1ac218d04698faf Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 8 Apr 2025 10:39:48 -0400 Subject: break apart c libaray --- lib/ctoi.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 lib/ctoi.c (limited to 'lib/ctoi.c') diff --git a/lib/ctoi.c b/lib/ctoi.c deleted file mode 100644 index efe4fec..0000000 --- a/lib/ctoi.c +++ /dev/null @@ -1,14 +0,0 @@ -#include - -int ctoi(char c) -{ - if (c >= '0' && c <= '9') { - return c - '0'; - } else if (c >= 'A' && c <= 'Z') { - return c - 'A' + 10; - } else if (c >= 'a' && c <= 'z') { - return c - 'a' + 10; - } else { - return -1; - } -} -- cgit v1.2.3-freya