1VFSCANF(3P)                POSIX Programmer's Manual               VFSCANF(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       vfscanf, vscanf, vsscanf — format input of a stdarg argument list
14

SYNOPSIS

16       #include <stdarg.h>
17       #include <stdio.h>
18
19       int vfscanf(FILE *restrict stream, const char *restrict format,
20           va_list arg);
21       int vscanf(const char *restrict format, va_list arg);
22       int vsscanf(const char *restrict s, const char *restrict format,
23           va_list arg);
24

DESCRIPTION

26       The functionality described on this reference page is aligned with  the
27       ISO C  standard.  Any  conflict between the requirements described here
28       and the ISO C standard is unintentional. This  volume  of  POSIX.1‐2008
29       defers to the ISO C standard.
30
31       The vscanf(), vfscanf(), and vsscanf() functions shall be equivalent to
32       the scanf(), fscanf(), and  sscanf()  functions,  respectively,  except
33       that  instead of being called with a variable number of arguments, they
34       are called with an argument list as defined in the  <stdarg.h>  header.
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 fscanf().
41

ERRORS

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