Hi rabidusv,
I would just add that in order to conver a char into an int, you'll have to use the function atoi.
int number;
char character = '1';
number = atoi(&character);

You could now use this function to extend it to convert a full string (char*) into a number.
Pay attention when converting like you are doing. Remember that '0' has the value 48, not 0. However, atoi(&char) if char = '0' is 0.