Parsing data integer plus letter

I dont think I understand.

I want to receive different letters and each one to call a different color.

So I can here use ¨a¨ for number and ¨color¨ for the hex code

trellis.setPixelColor (a, color);

Here arent you receving ¨green¨ ?

if ( !strcmp( strtokIndx, "green" ) )
{
  color = s;
}