Namespaces
Variants
Views
Actions

std::vwscanf, std::vfwscanf, std::vswscanf

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 12:38, 27 November 2011 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

<td>
Defined in header <cstdio>
</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 > Template:mark c++11 feature </td> </tr> <tr class="t-dcl ">

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

<td > (2) </td> <td > Template:mark c++11 feature </td> </tr> <tr class="t-dcl ">

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

<td > (3) </td> <td > Template:mark c++11 feature </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 Template:cpp

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 Template:cpp if failure occurs.

Example

Template:example cpp

See also

Template:cpp/io/c/dcl list fwscanf