Is there a way to try parse a Char into an Int?

int atoi(const char *str)