Mercurial > hg > CbC > CbC_gcc
annotate libiberty/vprintf.c @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 @deftypefn Supplemental int vprintf (const char *@var{format}, va_list @var{ap}) | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
4 @deftypefnx Supplemental int vfprintf (FILE *@var{stream}, @ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
5 const char *@var{format}, va_list @var{ap}) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 @deftypefnx Supplemental int vsprintf (char *@var{str}, @ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
7 const char *@var{format}, va_list @var{ap}) |
0 | 8 |
9 These 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 | |
12 they do not call @code{va_end}; this is the application's | |
13 responsibility. In @libib{} they are implemented in terms of the | |
14 nonstandard but common function @code{_doprnt}. | |
15 | |
16 @end deftypefn | |
17 | |
18 */ | |
19 | |
20 #include <ansidecl.h> | |
21 #include <stdarg.h> | |
22 #include <stdio.h> | |
23 #undef vprintf | |
24 int | |
25 vprintf (const char *format, va_list ap) | |
26 { | |
27 return vfprintf (stdout, format, ap); | |
28 } |