[Previous] [Contents] [Next]

swscanf()

Scan input from a character string

Synopsis:

#include <wchar.h>

int swscanf( const wchar_t * ws,
             const wchar_t * format,
             ... );

Library:

libc

Description:

The swscanf() function scans input from the character string ws, under control of the argument format. Following the format string is the list of addresses of items to receive values.

For details about the format string, see scanf(). The swscanf() function is the wide-character version of sscanf().

Returns:

EOF
Failure; the scanning stopped by reaching the end of the input stream before storing any values.
x
Success; the number of input arguments for which values were successfully scanned and stored.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

errno, fwscanf(), scanf(), swscanf(), vfwscanf(), vswscanf(), wscanf()


[Previous] [Contents] [Next]