C++ I'm confused about declaring and using characters - for instance in this sscanf example : The following example works fine:

    char rc[20]="1,150";
    char command[1];
    int data1 = 0;
    int data2 = 0;
    int data3 = 0;
    int count = sscanf(rc, "%c,%d,%d,%d", command, &data1, &data2, &data3); 

It gives:
 count = 2; command[0] = 1; data1 = 150

But I don't know how to make this work if command is defined as:
char command; or char * command.

