189857Sobrien/*
289857Sobrien
389857Sobrien@deftypefn Supplemental int vprintf (const char *@var{format}, va_list @var{ap})
489857Sobrien@deftypefnx Supplemental int vfprintf (FILE *@var{stream}, const char *@var{format}, va_list @var{ap})
589857Sobrien@deftypefnx Supplemental int vsprintf (char *@var{str}, const char *@var{format}, va_list @var{ap})
689857Sobrien
789857SobrienThese functions are the same as @code{printf}, @code{fprintf}, and
889857Sobrien@code{sprintf}, respectively, except that they are called with a
989857Sobrien@code{va_list} instead of a variable number of arguments.  Note that
1089857Sobrienthey do not call @code{va_end}; this is the application's
1189857Sobrienresponsibility.  In @libib{} they are implemented in terms of the
1289857Sobriennonstandard but common function @code{_doprnt}.
1389857Sobrien
1489857Sobrien@end deftypefn
1589857Sobrien
1689857Sobrien*/
1789857Sobrien
18130561Sobrien#include <ansidecl.h>
1933965Sjdp#include <stdarg.h>
2060484Sobrien#include <stdio.h>
2133965Sjdp#undef vprintf
2233965Sjdpint
23218822Sdimvprintf (const char *format, va_list ap)
2433965Sjdp{
2533965Sjdp  return vfprintf (stdout, format, ap);
2633965Sjdp}
27