Basic and Advance C Question:
Download Questions PDF

How can I write a function analogous to scanf

Answer:

How can I write a function analogous to scanf, i.e. that accepts similar arguments, and calls scanf to do most of the work?

C99 (but not any earlier C Standard) supports vscanf, vfscanf, and vsscanf.

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How can I discover how many arguments a function was actually called with?How can I write a function that takes a format string and a variable number of arguments