Interview Questions

How can I write a function analogous to scanf

C Interview Questions and Answers


(Continued from previous question...)

How can I write a function analogous to scanf

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.

(Continued on next question...)

Other Interview Questions