Scroll Down to See All
abortabsacosasctimeasctime_rasinassertatanatan2atexitatofatoiatolbsearchbtowccalloccatclosecatgetscatopenceilclearerrclockcoscoshctimectime_rdifftimediverferfcexitexpfabsfclosefdopenfeofferrorfflushfgetcfgetposfgetsfgetwcfgetwsfopenfprintffputcfputwsfreadfreefreopenfrexpfscanffseekfsetposftellfwidefwprintffwritefwscanfgetcgetchargetenvgetwcgetwchargmtimegmtime_rhypotisalnumisalphaisasciiisblankiscntrlisdigitisgraphislowerisprintispunctisspaceisupperiswalnumiswalphaiswblankiswcntrliswctypeiswdigitiswgraphiswloweriswprintiswpunctiswspaceiswupperiswxdigitisxdigitj0j1jnlabsldexpldivlocaleconvlocaltimelocaltime_rloglog10longjmpmallocmblenmbrlenmbrtowcmbsinitmbsrtowcsmbstowcsmbtowcmemchrmemcmpmemcpymemmovememsetmktimemodfnextafternextafterlnexttowardnexttowardlnl_langinfoperrorpowprintfputcputcharputenvputsputwcputwcharqsortquantexpd32quantexpd64quantexpd128quantized32quantized64quantized128samequantumd32raiserandrand_rreallocregcompregerrorregexecregfreeremoverenamerewindscanfsetbufsetjmpsetlocalesetvbufsignalsinsinhsnprintfsprintfsqrtsrandsscanfstrcasecmpstrcatstrchrstrcmpstrcollstrcpystrcspnstrerrorstrfmonstrftimestrlenstrncasecmpstrncatstrncmpstrncpystrpbrkstrptimestrrchrstrspnstrstrstrtodstrtod32strtod64strtod128strtofstrtokstrtok_rstrtolstrtoldstrtoulstrxfrmswprintfswscanfsystemtantanhtimetime64tmpfiletmpnamtoasciitolowertouppertowctranstowlowertowupperungetcungetwcva_argva_copyva_endva_startvfprintfvfscanfvfwprintfvfwscanfvprintfvscanfvsprintfvsnprintfvsscanfvswprintfvwprintfvwscanfwcrtombwcscatwcschrwcscmpwcscollwcscpywcscpywcsftimewcslenwcsncatwcsncmpwcsncpywcspbrkwcsptimewcsrchrwcsrtombswcsspnwcsstrwcstodwcstod32wcstod64wcstod128wcstofwcstokwcstolwcstoldwcstombswcstoulwcsxfrmwctobwctombwctranswctypewcwidthwmemchrwmemcmpwmemcpywmemmovewmemsetwprintfwscanfy0y1yn



Function Details : vswscanf

intvswscanf(const wchar_t * ws,const wchar_t * format,va_list args) ;

Return Type : int

Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
Read about return values of vswscanf function .

1st Parameter Type : const wchar_t *

A pointer to a read-only wide-character string, where each character is of type `wchar_t`. Used for representing text in wide-character encoding to support extended character sets, such as Unicode. The string is null-terminated, with the terminator being a `wchar_t` with value 0.

1st Parameter

Pointer to the null-terminated wide-character string to be read and matched against the format string.

2nd Parameter Type : const wchar_t *

A pointer to a read-only wide-character string, where each character is of type `wchar_t`. Used for representing text in wide-character encoding to support extended character sets, such as Unicode. The string is null-terminated, with the terminator being a `wchar_t` with value 0.

2nd Parameter

Pointer to a null-terminated wide-character string specifying the format to interpret the input. It may include format specifiers like `%ls`, `%d`, etc.

3rd Parameter Type : va_list

A data type used to hold information about variable arguments passed to a variadic function. It is initialized with `va_start`, used with `va_arg`, and cleaned up with `va_end`.

3rd Parameter

A `va_list` object containing pointers to variables where the parsed input values will be stored. The `va_list` must be initialized with `va_start`.

Read more about parameters of vswscanf in parameters section
The vswscanffunction in C language Reads formatted wide character input from a string using a va_list.
vswscanf is similar to swscanf, but instead of taking a variable number of arguments, it takes a va_list that has been initialized by va_start. This function reads formatted wide character data from a wide string and stores the results in the locations pointed to by the elements in the va_list.
The vswscanffunction takes 3 parameters:
  • const wchar_t * `ws`: Pointer to the null-terminated wide-character string to be read and matched against the format string.
  • const wchar_t * `format`: Pointer to a null-terminated wide-character string specifying the format to interpret the input. It may include format specifiers like `%ls`, `%d`, etc.
  • va_list `args`: A `va_list` object containing pointers to variables where the parsed input values will be stored. The `va_list` must be initialized with `va_start`.
Reads input from the wide-character string `ws` and matches it against the format string `format`. The extracted values are stored in the locations specified by the `va_list` object `args`. Returns the number of successfully matched and assigned input items, or `EOF` if an error occurs or the end of the string is reached before any matches.
The vswscanf function return value :
  • Returns the number of input items successfully matched and assigned
  • Returns EOF if an error occurred before any conversion

Output

This example demonstrates using vswscanf in a custom function to parse a wide string containing different types of data.