compare strings using sscanf, but ignore whitespaces

Viewed 1319

For a command line application I need to compare the input string to a command pattern. White spaces need to be ignored.

This line should match input strings like " drop all " and " drop all":

int rc = sscanf( input, "drop all");

But what does indicate a successful match here?

2 Answers
Related