I just became aware of a, imho, rather odd thing in sscanf().

If we have the following:

string x = "some text";
string y;
sscanf(x, "%s,", y);
werror("%O\n", y);

the string y will be empty. I think it's rather odd that the %s
doesn't match the whole string in this case.

Compatibility issues aside, don't we want %s to match to next matcher
or EOS?

Reply via email to