That won't work for the cases when not all patterns match. Also, it's longer and harder to write and read.
/ Per Hedbor ()
Previous text:
2004-01-02 00:55: Subject: Re: C#-like properties
Special sscanf seems less necessary nowadays when you can write
[a, b] = array_sscanf(format, s);
(and if this is ever the "official" way of using sscanf, the "array_" prefix should of course be deleted).
/ Niels Möller (igelkottsräddare)