diff options
Diffstat (limited to 'lib/ctoi.c')
-rw-r--r-- | lib/ctoi.c | 14 |
1 files changed, 0 insertions, 14 deletions
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 <stdlib.h> - -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; - } -} |