10Sstevel@tonic-gate/*
20Sstevel@tonic-gate
30Sstevel@tonic-gate@deftypefn Supplemental int vprintf (const char *@var{format}, va_list @var{ap})
40Sstevel@tonic-gate@deftypefnx Supplemental int vfprintf (FILE *@var{stream}, const char *@var{format}, va_list @var{ap})
50Sstevel@tonic-gate@deftypefnx Supplemental int vsprintf (char *@var{str}, const char *@var{format}, va_list @var{ap})
60Sstevel@tonic-gate
70Sstevel@tonic-gateThese functions are the same as @code{printf}, @code{fprintf}, and
80Sstevel@tonic-gate@code{sprintf}, respectively, except that they are called with a
90Sstevel@tonic-gate@code{va_list} instead of a variable number of arguments.  Note that
100Sstevel@tonic-gatethey do not call @code{va_end}; this is the application's
110Sstevel@tonic-gateresponsibility.  In @libib{} they are implemented in terms of the
120Sstevel@tonic-gatenonstandard but common function @code{_doprnt}.
130Sstevel@tonic-gate
140Sstevel@tonic-gate@end deftypefn
150Sstevel@tonic-gate
160Sstevel@tonic-gate*/
170Sstevel@tonic-gate
180Sstevel@tonic-gate#include <ansidecl.h>
190Sstevel@tonic-gate#include <stdarg.h>
200Sstevel@tonic-gate#include <stdio.h>
210Sstevel@tonic-gate#undef vprintf
220Sstevel@tonic-gateint
23vprintf (const char *format, va_list ap)
24{
25  return vfprintf (stdout, format, ap);
26}
27