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++
- exp() function C++
- div() function in C++
- arc function in C
- log() function in C++
- fma() function in C++
- fegetenv() function in C/C++
- wctrans() function in C/C++
- fegetexceptflag() function in C/C++
- wmemcpy() function in C/C++
- time() function in C
- clock() function in C/C++
- nearbyint() function in C++
- isfinite() function in C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.