Namespaces
Variants
Views
Actions

Difference between revisions of "c/io/vfwscanf"

From cppreference.com
< c‎ | io
(+see cpp)
(use li, see also fix)
Line 4: Line 4:
 
{{ddcl list header | wchar.h}}
 
{{ddcl list header | wchar.h}}
 
{{ddcl list item | num=1 | notes={{mark since c99}} |
 
{{ddcl list item | num=1 | notes={{mark since c99}} |
​int vwscanf( const wchar_t* format, va_list vlist );
+
int vwscanf( const wchar_t* format, va_list vlist );
 
}}
 
}}
 
{{ddcl list item | num=2 | notes={{mark since c99}} |
 
{{ddcl list item | num=2 | notes={{mark since c99}} |
Line 16: Line 16:
 
Reads data from the a variety of sources, interprets it according to {{tt|format}} and stores the results into locations defined by {{tt|vlist}}.
 
Reads data from the a variety of sources, interprets it according to {{tt|format}} and stores the results into locations defined by {{tt|vlist}}.
  
1) Reads the data from {{c|stdin}}
+
{{li begin}}
 
+
{{li|1}} Reads the data from {{c|stdin}}.
2) Reads the data from file stream {{tt|stream}}
+
{{li|2}} Reads the data from file stream {{tt|stream}}.
 
+
{{li|3}} Reads the data from null-terminated wide string {{tt|buffer}}.
3) Reads the data from null-terminated wide string {{tt|buffer}}
+
{{li end}}
  
 
===Parameters===
 
===Parameters===
Line 43: Line 43:
 
{{dcl list begin}}
 
{{dcl list begin}}
 
{{dcl list template | c/io/dcl list fwscanf}}
 
{{dcl list template | c/io/dcl list fwscanf}}
{{dcl list see cpp | cpp/io/c/vfwscanf}}
+
{{dcl list see cpp | cpp/io/c/vfwscanf | vwscanf | vfwscanf | vswscanf}}
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 08:45, 14 May 2012

Template:c/io/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <wchar.h>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
int vwscanf( const wchar_t* format, va_list vlist );
</td>

<td > (1) </td> <td > (since C99) </td> </tr> <tr class="t-dcl ">

<td >
int vfwscanf( FILE *stream, const wchar_t* format, va_list vlist );
</td>

<td > (2) </td> <td > (since C99) </td> </tr> <tr class="t-dcl ">

<td >
int vswscanf( const wchar_t* buffer, const wchar_t* format, va_list vlist );
</td>

<td > (3) </td> <td > (since C99) </td> </tr> Template:ddcl list end

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

Template:c/io/dcl list fwscanf
C++ documentation for vwscanf, vfwscanf, vswscanf