mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 21:50:00 +08:00
c9ac9147cf
* argv.c: Fix comments. * calloc.c: Don't unnecessarily include "libiberty.h". (bzero): Add prototype. * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. * getcwd.c (getcwd): Use standard definition to avoid conflicts with system headers. * hashtab.c (htab_traverse): Delete unused variables. * rename.c: Include "ansidecl.h". (rename): Use standard definition to avoid conflicts with system headers. * strsignal.c: Rely on ANSI_PROTOTYPES. * strstr.c: Check GNUC >= 2, not GNUC == 2. * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. * vprintf.c: Include "ansidecl.h" earlier, rely on ANSI_PROTOTYPES. * vsprintf.c: Include "ansidecl.h" earlier, rely on ANSI_PROTOTYPES and possibly include <stdarg.h>. * Makefile.in: Regenerate dependencies. From-SVN: r65659
33 lines
927 B
C
33 lines
927 B
C
/*
|
|
|
|
@deftypefn Supplemental int vprintf (const char *@var{format}, va_list @var{ap})
|
|
@deftypefnx Supplemental int vfprintf (FILE *@var{stream}, const char *@var{format}, va_list @var{ap})
|
|
@deftypefnx Supplemental int vsprintf (char *@var{str}, const char *@var{format}, va_list @var{ap})
|
|
|
|
These functions are the same as @code{printf}, @code{fprintf}, and
|
|
@code{sprintf}, respectively, except that they are called with a
|
|
@code{va_list} instead of a variable number of arguments. Note that
|
|
they do not call @code{va_end}; this is the application's
|
|
responsibility. In @libib{} they are implemented in terms of the
|
|
nonstandard but common function @code{_doprnt}.
|
|
|
|
@end deftypefn
|
|
|
|
*/
|
|
|
|
#include <ansidecl.h>
|
|
#ifdef ANSI_PROTOTYPES
|
|
#include <stdarg.h>
|
|
#else
|
|
#include <varargs.h>
|
|
#endif
|
|
#include <stdio.h>
|
|
#undef vprintf
|
|
int
|
|
vprintf (format, ap)
|
|
const char *format;
|
|
va_list ap;
|
|
{
|
|
return vfprintf (stdout, format, ap);
|
|
}
|