The vfwscanf() function in C++ is used to read formatted data from wide string into variable argument list. It also reads wide character string from a wide string buffer. This function reads data from ws and stores them according to format into the locations pointed by the elements in the variable argument list identified by arg.
It is defined in
int vswscanf( const wchar_t* ws, const wchar_t* format, va_list arg )
Parameters : The function accepts three mandatory parameters which are described below:
- ws :Pointer to the null terminated wide string to read the data
- format :Pointer to a null-terminated wide character string that specifies how to read the input
- arg : A value identifying a variable arguments list initialized with va_start.
Return value: The function returns two value as below:
- on success, it returns the number of arguments successfully read.
- on failure, EOF is returned
Below programs illustrate the above function:
Program 1 :
Random Symbols are : G F G
Program 2 :
Best: websites Quantity: 100
- Function Overloading vs Function Overriding in C++
- What happens when a virtual function is called inside a non-virtual function in C++
- log() function in C++
- exp() function C++
- fma() function in C++
- div() function in C++
- arc function in C
- acosh() function in C++ STL
- list end() function in C++ STL
- wcsncpy() function in C++ with example
- towctrans() function in C/C++
- imag() function in C++
- real() function in C++
- atan2() function in C++ STL
- bitset all() function in C++ STL
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.