]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/vprintf.c
[Ada] Use new API when creating a special SPARK heap entity
[thirdparty/gcc.git] / libiberty / vprintf.c
CommitLineData
aaa5f039
DD
1/*
2
3@deftypefn Supplemental int vprintf (const char *@var{format}, va_list @var{ap})
996c0cb0
RW
4@deftypefnx Supplemental int vfprintf (FILE *@var{stream}, @
5 const char *@var{format}, va_list @var{ap})
6@deftypefnx Supplemental int vsprintf (char *@var{str}, @
7 const char *@var{format}, va_list @var{ap})
aaa5f039
DD
8
9These functions are the same as @code{printf}, @code{fprintf}, and
10@code{sprintf}, respectively, except that they are called with a
11@code{va_list} instead of a variable number of arguments. Note that
12they do not call @code{va_end}; this is the application's
13responsibility. In @libib{} they are implemented in terms of the
14nonstandard but common function @code{_doprnt}.
15
16@end deftypefn
17
18*/
19
c9ac9147 20#include <ansidecl.h>
6599da04 21#include <stdarg.h>
96e88994 22#include <stdio.h>
6599da04
JM
23#undef vprintf
24int
7a17ef5e 25vprintf (const char *format, va_list ap)
6599da04
JM
26{
27 return vfprintf (stdout, format, ap);
28}