write a string into ESP8266 eeprom

Thank you PaulS.
My code is according to this

This is meaningless when test[cc] is 'T', for instance.

Is that wrong?what is the easy way to convert a character to integer?

Can you please help me with correct code?