liveBook · Manning

Vfprintf

vfprintf is a C standard-library function that formats output to a stream using arguments supplied through a va_list.

How 2 Manning books explain it

Modern C, Third Edition

vfprintf is a C standard-library function that formats output to a stream using a va_list of arguments.

How it is used
Delegates formatted printing from a variadic wrapper to a C library stream function.
How deep it goes
Explains va_list setup and delegation, but stops short of detailing vfprintf’s formatting internals.
Examples
Uses a variadic wrapper around a possibly valid thread-local I/O stream and contrasts it with manual va_arg processing.
What you can do after
Apply it via the C standard library to implement formatted-output wrappers without manually traversing arguments.

Read how Modern C, Third Edition explains vfprintf →

Modern C

vfprintf is the C standard library function that writes formatted output to a stream using a va_list of arguments.

How it is used
Delegates formatted output from a variadic wrapper to a selected stream.
How deep it goes
Explains va_list forwarding through a complete wrapper, but stops short of vfprintf’s formatting internals.
Examples
Uses a printf_debug wrapper that forwards arguments to an optional debug stream.
What you can do after
Apply it via the C standard library to forward variadic formatted output without manually processing each argument.

Read how Modern C explains vfprintf →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.