Garmin Interview Question

Write an ASCII to Integer converter in C.