| vsprintf | Function (Macro)

stdio.h

short vsprintf (char *buffer, const char *format, va_list arglist);

Sends formatted output to a string using argument list.

The vsprintf functions is known as an alternate entry point for the sprintf function. It behaves exactly like sprintf, but it accepts a pointer to a list of arguments instead of an argument list (see stdarg.h header file for more info about argument lists). See printf for details on format specifiers.
vsprintf accepts arglist, which is a pointer to a series of arguments, applies to each a format specifier contained in the format string pointed to by format, and outputs the formatted data to the string pointed to by buffer. There must be the same number of format specifiers as arguments.
Note: In ANSI C, function vsprintf is an int function, and it returns the number of characters stored in buffer. Due to some practical reasons, this implementation of vsprintf is a void function. This difference is usually not important.

Uses: vcbprintf, strputchar