sscanf (buf, "%3s%d", cmd, & val);
works but doesn't separating the cmd from an argument make more sense, or are there going to be #'d commands CMD1, CMD1, ...?
sscanf (buf, "%3s%d", cmd, & val);
works but doesn't separating the cmd from an argument make more sense, or are there going to be #'d commands CMD1, CMD1, ...?