Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
vsprintf, vswprintf
Write formatted output using a pointer to a list of arguments.
intvsprintf(char*buffer,constchar*format,va_listargptr**);**
intvswprintf(wchar_t*buffer,constwchar_t*format,va_listargptr**);**
1 Required for UNIX V compatibility.
For additional compatibility information, see Compatibility in the Introduction.
Libraries
Return Value
vsprintf and vswprintf return the number of characters written, not including the terminating null character, or a negative value if an output error occurs. For vswprintf, a negative value is also returned if count or more wide characters are requested to be written.
Parameters
buffer
Storage location for output
format
Format specification
argptr
Pointer to list of arguments
count
Maximum number of bytes to write
Remarks
Each of these functions takes a pointer to an argument list, then formats and writes the given data to the memory pointed to by buffer.
Generic-Text Routine Mappings