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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       vdprintf, vfprintf, vprintf, vsnprintf, vsprintf — format output  of  a
14       stdarg argument list
15

SYNOPSIS

17       #include <stdarg.h>
18       #include <stdio.h>
19
20       int vdprintf(int fildes, const char *restrict format, va_list ap);
21       int vfprintf(FILE *restrict stream, const char *restrict format,
22           va_list ap);
23       int vprintf(const char *restrict format, va_list ap);
24       int vsnprintf(char *restrict s, size_t n, const char *restrict format,
25           va_list ap);
26       int vsprintf(char *restrict s, const char *restrict format, va_list ap);
27

DESCRIPTION

29       The  functionality described on this reference page is aligned with the
30       ISO C standard. Any conflict between the  requirements  described  here
31       and  the  ISO C  standard is unintentional. This volume of POSIX.1‐2008
32       defers to the ISO C standard.
33
34       The vdprintf(),  vfprintf(),  vprintf(),  vsnprintf(),  and  vsprintf()
35       functions  shall  be equivalent to the  dprintf(), fprintf(), printf(),
36       snprintf(), and sprintf() functions respectively, except  that  instead
37       of  being  called  with a variable number of arguments, they are called
38       with an argument list as defined by <stdarg.h>.
39
40       These functions shall not invoke the va_end macro. As  these  functions
41       invoke  the  va_arg macro, the value of ap after the return is unspeci‐
42       fied.
43

RETURN VALUE

45       Refer to fprintf().
46

ERRORS

48       Refer to fprintf().
49
50       The following sections are informative.
51

EXAMPLES

53       None.
54

APPLICATION USAGE

56       Applications using these functions should call va_end(ap) afterwards to
57       clean up.
58

RATIONALE

60       None.
61

FUTURE DIRECTIONS

63       None.
64

SEE ALSO

66       Section 2.5, Standard I/O Streams, fprintf()
67
68       The Base Definitions volume of POSIX.1‐2008, <stdarg.h>, <stdio.h>
69
71       Portions  of  this text are reprinted and reproduced in electronic form
72       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
73       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
74       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
75       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
76       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
77       event of any discrepancy between this version and the original IEEE and
78       The Open Group Standard, the original IEEE and The Open Group  Standard
79       is  the  referee document. The original Standard can be obtained online
80       at http://www.unix.org/online.html .
81
82       Any typographical or formatting errors that appear  in  this  page  are
83       most likely to have been introduced during the conversion of the source
84       files to man page format. To report such errors,  see  https://www.ker
85       nel.org/doc/man-pages/reporting_bugs.html .
86
87
88
89IEEE/The Open Group                  2013                         VFPRINTF(3P)
Impressum