Perhaps, cleaner solution would be to implement a reference to variable (something like x(int &x) in C/C++ or x(ref int i) in C#),
we are trying to reduce the syntax (in this discussion anyways)
you may need to assign values from this array to variables.
[foo, bar, baz] = array_sscanf(...);
Imagine that your application doing sscanf() most of time, then try to replace sscanf() with array_sscanf() - you will see the difference. Not that this is _so_ critical nowadays, but "why pay more?"
how many calls to sscanf will it take before this difference becomes significant?
greetings, martin.