Serial data string.equals wild cards?

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, ...?