[Previous] [Contents] [Next]

vswscanf()

Scan input from a string

Synopsis:

#include <wchar.h>
#include <stdarg.h>

int vswscanf( const wchar_t * ws,
              const wchar_t * format,
              va_list arg );

Library:

libc

Description:

The vswscanf() function scans input from the string designated by ws, under control of the argument format.

The vswscanf() function is equivalent to the swscanf() function, with a variable argument list replaced with arg, which has been initialized using the va_start() macro.

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

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 Read the Caveats
Signal handler Read the Caveats
Thread Yes

Caveats:

It's safe to call vswscanf() in an interrupt handler or signal handler if the data isn't floating point.

See also:

fwscanf(), scanf(), swscanf(), va_arg(), va_end(), va_start(), vfwscanf(), wscanf()


[Previous] [Contents] [Next]