Namespaces
Variants
Actions

std::wscanf, std::fwscanf, std::swscanf

From cppreference.com
< cpp‎ | io‎ | c
 
 
 
C-style I/O
Types and objects
Functions
File access
Direct input/output
Unformatted input/output
Formatted input
(C++11)(C++11)(C++11)    
wscanffwscanfswscanf
(C++11)(C++11)(C++11)    
 
Defined in header <cwchar>
int wscanf( const wchar_t* format, ... );
(1)
int fwscanf( std::FILE* stream, const wchar_t* format, ... );
(2)
int swscanf( const wchar_t* buffer, const wchar_t* format, ... );
(3)

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

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