Namespaces
Variants
Views
Actions

Difference between revisions of "c/io/vfwscanf"

From cppreference.com
< c‎ | io
m (Update links.)
m (Use since= and until= params of {{dcl}} template.)
Line 3: Line 3:
 
{{dcl begin}}
 
{{dcl begin}}
 
{{dcl header | wchar.h}}
 
{{dcl header | wchar.h}}
{{dcl | num=1 | notes={{mark since c99}} |
+
{{dcl | num=1 | since=c99 |
 
int vwscanf( const wchar_t* format, va_list vlist );
 
int vwscanf( const wchar_t* format, va_list vlist );
 
}}
 
}}
{{dcl | num=2 | notes={{mark since c99}} |
+
{{dcl | num=2 | since=c99 |
 
int vfwscanf( FILE *stream, const wchar_t* format, va_list vlist );
 
int vfwscanf( FILE *stream, const wchar_t* format, va_list vlist );
 
}}
 
}}
{{dcl | num=3 | notes={{mark since c99}} |
+
{{dcl | num=3 | since=c99 |
 
int vswscanf( const wchar_t* buffer, const wchar_t* format, va_list vlist );
 
int vswscanf( const wchar_t* buffer, const wchar_t* format, va_list vlist );
 
}}
 
}}

Revision as of 15:23, 1 July 2013

 
 
File input/output
Types and objects
Functions
File access
Direct input/output
Unformatted input/output
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
vwscanfvfwscanfvswscanfvwscanf_svfwscanf_svswscanf_s
(C99)(C99)(C99)(C11)(C11)(C11)     
 
Defined in header <wchar.h>
int vwscanf( const wchar_t* format, va_list vlist );
(1) (since C99)
int vfwscanf( FILE *stream, const wchar_t* format, va_list vlist );
(2) (since C99)
int vswscanf( const wchar_t* buffer, const wchar_t* format, va_list vlist );
(3) (since C99)

Reads data from the a variety of sources, interprets it according to format and stores the results into locations defined by vlist.

1) Reads the data from stdin.
2) Reads the data from file stream stream.
3) Reads the data from null-terminated wide string buffer.

Contents

Parameters

stream - input file stream to read from
buffer - pointer to a null-terminated wide string to read from
format - pointer to a null-terminated wide string specifying how to read the input.


vlist - variable argument list containing the receiving arguments

Return value

Number of arguments successfully read, or EOF if failure occurs.

Example

See also

reads formatted wide character input from stdin, a file stream or a buffer
(function) [edit]
C++ documentation for vwscanf, vfwscanf, vswscanf