vsprintf(3C)
_________________________________________________________________
vsprintf function
Print a variable argument list to a memory array.
_________________________________________________________________
Calling Sequence
#include <stdio.h>
#include <varargs.h>
valist ap;
char *format, buffer[];
int n, vsprintf();
vastart(ap);
n = vsprintf(buffer, format, ap);
vaend(ap);
Description
The vsprintf function allows you to print a variable argument
list to a memory array. This function is similar to sprintf,
except that instead of passing the arguments after the format
string directly to the function, you pass the argument pointer
that is set up with va_start (see "The varargs.h Include File" in
Chapter 1).
Returns
The vsprintf function returns a negative value on error.
Related Functions
See also the sprintf and printf functions.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)