1VFPRINTF(P)                POSIX Programmer's Manual               VFPRINTF(P)
2
3
4

NAME

6       vfprintf,  vprintf,  vsnprintf,  vsprintf  -  format output of a stdarg
7       argument list
8

SYNOPSIS

10       #include <stdarg.h>
11       #include <stdio.h>
12
13       int vfprintf(FILE *restrict stream, const char *restrict format,
14              va_list ap);
15       int vprintf(const char *restrict format, va_list ap);
16       int vsnprintf(char *restrict s, size_t n, const char *restrict format,
17              va_list ap);
18       int vsprintf(char *restrict s, const  char  *restrict  format,  va_list
19       ap);
20
21

DESCRIPTION

23       The  vprintf(), vfprintf(), vsnprintf(), and vsprintf() functions shall
24       be equivalent to printf(), fprintf(), snprintf(), and sprintf() respec‐
25       tively,  except  that instead of being called with a variable number of
26       arguments, they  are  called  with  an  argument  list  as  defined  by
27       <stdarg.h>.
28
29       These  functions  shall not invoke the va_end macro. As these functions
30       invoke the va_arg macro, the value of ap after the return  is  unspeci‐
31       fied.
32

RETURN VALUE

34       Refer to fprintf() .
35

ERRORS

37       Refer to fprintf() .
38
39       The following sections are informative.
40

EXAMPLES

42       None.
43

APPLICATION USAGE

45       Applications using these functions should call va_end(ap) afterwards to
46       clean up.
47

RATIONALE

49       None.
50

FUTURE DIRECTIONS

52       None.
53

SEE ALSO

55       fprintf()  ,  the  Base  Definitions  volume  of  IEEE Std 1003.1-2001,
56       <stdarg.h>, <stdio.h>
57
59       Portions  of  this text are reprinted and reproduced in electronic form
60       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
61       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
62       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
63       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
64       event of any discrepancy between this version and the original IEEE and
65       The  Open Group Standard, the original IEEE and The Open Group Standard
66       is the referee document. The original Standard can be  obtained  online
67       at http://www.opengroup.org/unix/online.html .
68
69
70
71IEEE/The Open Group                  2003                          VFPRINTF(P)
Impressum