On Tue, Dec 23, 2003 at 02:19:45PM +0100, Martin B?hr wrote:
I can't use %*x because the processing of some fields may depend on value of other fields.
example?
Very simple. Assume that we have variable x, y, and z. Variable z is only needed when x is below 100. Actually, Mirar made a demonstration already, so.. :) I can add that sscanf() won't change anything that is not matched by format, so you can assign default values - which is impossible in case of array (you have to check it manually).
In any case, sscanf() is far more flexible and convenient comparing to array_sscanf(), and I don't think than it will be removed :)
Contrary to non-existing features, existing are easy to ignore, i.e. - if you prefer not to use it - don't use it, that's so simple - nobody forces you to use it anyway, while you are trying to withdraw this from those who need/like it :)
Regards, /Al