Garmin interview question

Write an ASCII to Integer converter in C.