1VFSCANF(P) POSIX Programmer's Manual VFSCANF(P)
2
3
4
6 vfscanf, vscanf, vsscanf - format input of a stdarg argument list
7
9 #include <stdarg.h>
10 #include <stdio.h>
11
12 int vfscanf(FILE *restrict stream, const char *restrict format,
13 va_list arg);
14 int vscanf(const char *restrict format, va_list arg);
15 int vsscanf(const char *restrict s, const char *restrict format,
16 va_list arg);
17
18
20 The vscanf(), vfscanf(), and vsscanf() functions shall be equivalent to
21 the scanf(), fscanf(), and sscanf() functions, respectively, except
22 that instead of being called with a variable number of arguments, they
23 are called with an argument list as defined in the <stdarg.h> header.
24 These functions shall not invoke the va_end macro. As these functions
25 invoke the va_arg macro, the value of ap after the return is unspeciā
26 fied.
27
29 Refer to fscanf() .
30
32 Refer to fscanf() .
33
34 The following sections are informative.
35
37 None.
38
40 Applications using these functions should call va_end( ap) afterwards
41 to clean up.
42
44 None.
45
47 None.
48
50 fscanf() , the Base Definitions volume of IEEE Std 1003.1-2001,
51 <stdarg.h>, <stdio.h>
52
54 Portions of this text are reprinted and reproduced in electronic form
55 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
56 -- Portable Operating System Interface (POSIX), The Open Group Base
57 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
58 Electrical and Electronics Engineers, Inc and The Open Group. In the
59 event of any discrepancy between this version and the original IEEE and
60 The Open Group Standard, the original IEEE and The Open Group Standard
61 is the referee document. The original Standard can be obtained online
62 at http://www.opengroup.org/unix/online.html .
63
64
65
66IEEE/The Open Group 2003 VFSCANF(P)