Back to index

cell-binutils  2.17cvs20070401
vprintf.c
Go to the documentation of this file.
00001 /*
00002 
00003 @deftypefn Supplemental int vprintf (const char *@var{format}, va_list @var{ap})
00004 @deftypefnx Supplemental int vfprintf (FILE *@var{stream}, const char *@var{format}, va_list @var{ap})
00005 @deftypefnx Supplemental int vsprintf (char *@var{str}, const char *@var{format}, va_list @var{ap})
00006 
00007 These functions are the same as @code{printf}, @code{fprintf}, and
00008 @code{sprintf}, respectively, except that they are called with a
00009 @code{va_list} instead of a variable number of arguments.  Note that
00010 they do not call @code{va_end}; this is the application's
00011 responsibility.  In @libib{} they are implemented in terms of the
00012 nonstandard but common function @code{_doprnt}.
00013 
00014 @end deftypefn
00015 
00016 */
00017 
00018 #include <ansidecl.h>
00019 #include <stdarg.h>
00020 #include <stdio.h>
00021 #undef vprintf
00022 int
00023 vprintf (const char *format, va_list ap)
00024 {
00025   return vfprintf (stdout, format, ap);
00026 }