wscanf

Reads input from the standard input (stdin) under control of the wide-character format string.

Format

#include  <wchar.h>

int wscanf  (const wchar_t *format, . . . );

Arguments

format
A pointer to a wide-character string containing the format specifications. For more information about format and conversion specifications and their corresponding arguments, see Chapter 2.
. . .
Optional expressions whose results correspond to conversion specifications given in the format specification.

If no conversion specifications are given, you can omit the input pointers. Otherwise, the function calls must have exactly as many input pointers as there are conversion specifications, and the conversion specifications must match the types of the input pointers.

Conversion specifications are matched to input sources in left-to- right order. Excess input pointers, if any, are ignored.

Description

This function is equivalent to the fwscanf function with the stdin arguments interposed before the wscanf arguments.

Return Values
The number of input items assigned. The number can be less than provided for, even zero, in the event of an early matching failure. 
EOF  Indicates an error. An input failure occurred before any conversion. 
2266


Previous Page | Next Page | Table of Contents | Index