Get the latest tech news
Generalizing Printf in C
In ANSI C89, there are 6 printf functions: printf sprintf fprintf vprintf vsprintf vfprintf Other C versions add more: dprintf snprintf asprintf vdprintf vsnprintf vasprintf The sole difference between these functions is the format of input and the source of output. It would make sense to generalize this class of functions in a implementation of printf.
None
Or read this on Hacker News