Standard C++ Library Reference ISO/IEC (VERSION3)

vsprintf
int vsprintf(char *s, const char *format,
va_list ap);
The function generates formatted text, under the control of the format format and any
additional arguments, and stores each generated character in successive locations of the array
object whose first element has the address s. The function concludes by storing a null character
in the next location of the array. It returns the number of characters generated -- not including
the null character.
The function accesses additional arguments by using the context information designated by ap.
The program must execute the macro va_start before it calls the function, and then execute
the macro va_end after the function returns.
See also the Table of Contents and the Index.
Copyright © 1989-2001 by P.J. Plauger and Jim Brodie. All rights reserved.