Switch case for char array

My data that comes from serial looks like this :

void newDataFromMod(char header[],char dataA[], char dataB[])
 if (strcmp (header,"setMo") == 0)
// and more conditions here

How would i go with this and make a state machine of Switch-Case ?

I know that when Switch case you compare using:

 switch( command  )
    {
      case 'MOD':

But i have a chars array so i need to compare using strcmp , so how would you do the "case" comparison?

thanks a lot.

How would i go with this and make a state machine of Switch-Case ?

You can't because the switch variable must be an integer or a variable that can be resolved to an integer. It looks like you will need to use a series of ifs.

Match the incoming string against an array of strings and just use the array index.
Remember to keep the array in PROGMEM to avoid wasting RAM.