Scan input from a wide-character string
#include <wchar.h> int swscanf( const wchar_t * ws, const wchar_t * format, ... );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The swscanf() function scans input from the wide-character string ws, under control of the argument format. Following the format string is the list of addresses of items to receive values.
The swscanf() function is the wide-character version of sscanf().
The number of input arguments for which values were successfully scanned and stored, or EOF when the scanning is terminated by reaching the end of the input string.
ANSI, POSIX 1003.1
|Signal handler||Read the Caveats|
It's safe to call this function in a signal handler if the data isn't floating point.
errno, fscanf(), fwscanf(), scanf(), sscanf(), vfscanf(), vfwscanf(), vscanf(), vsscanf(), vswscanf(), vwscanf(), wscanf()