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

NAME

12       vfprintf, vprintf, vsnprintf, vsprintf -  format  output  of  a  stdarg
13       argument list
14

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

40       Refer to fprintf().
41

ERRORS

43       Refer to fprintf().
44
45       The following sections are informative.
46

EXAMPLES

48       None.
49

APPLICATION USAGE

51       Applications using these functions should call va_end(ap) afterwards to
52       clean up.
53

RATIONALE

55       None.
56

FUTURE DIRECTIONS

58       None.
59

SEE ALSO

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