I like to do it by my own. So instead of use atoi() I build my own functions. In this case, with such an easy sting (only 2 chars) you don't even need a 'function'. So, you can do:
@luisilva: What happens to the values 0-9 and 100-255? It appears that your algorithm only works for numbers with two digits, unless you require the value 1 to be stored at '0' '1'. Three digits won't work. It wouldn't be hard to create a function that would handle 1 to 3 digits using your approach.
Yes, for different number of digits the code must be different. With some loop, for example. But for such small number of digits we don't need to have a big function to do the conversion. And for some one that is starting he can learn what is ASCII, what is a char, a difference between '1' and 1, etc.