Table of Contents        Previous topic       Next topic       

C LIBRARY FUNCTIONS->Detailed Descriptions->vsprintf()


#include <stdio.h>
#include <stdarg.h>

int vsprintf(char* buffer, const char* format, va_list argptr);


bufferStorage location for output
formatFormat control string
argptrPointer to a list of arguments to be converted and written


This function converts, formats and writes the arguments pointer to by argptr to buffer.

The format control string has the same form and function as the format argument of the printf() function.

Return Value

The function returns the number of characters written to buffer.