Let's say i am communicating with a serial-port device and have a significant number of commands (74) for controlling such a device. Wich is the best way to store and use them?
Of course i can organize them the following way:
static char *cmd_msgs[] =
{
    "start",
    "stop",
    "reset",
    "quit",
    "",
    "",
    "",
    "",
    ...
};
Or human readable:
char cmd_start_str[] = "start";
...
char cmd_quit_str[] = "quit";
Can someone point to a working example dealing such a task?
 
     
    