Q: How can I write a function analogous to scanf, i.e. that accepts similar arguments, and calls scanf to do most of the work?
A: C99 (but not any earlier C Standard) supports vscanf, vfscanf, and vsscanf.
References: C9X Secs. 7.3.6.12-14
Hosted by