vsnprintf Function (tigcc.a)

stdio.h

short vsnprintf (char *buffer, unsigned long maxlen, const char *format, va_list arglist);

Sends formatted output, up to a given length, to a string, using argument list.

The vsprintf function is known as an alternate entry point for the snprintf function. It behaves exactly like snprintf, 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 (up to maxlen characters) to the string pointed to by buffer. There must be the same number of format specifiers as arguments.


Uses: vcbprintf, setjmp, longjmp


See also: vsprintf