Help With Converting Char to Int

Well, atoi works on strings, and strings are arrays of char (with a zero terminator), not single chars.