VMS Help  —  CRTL  swscanf
    Reads input from a wide-character string under control of the
    wide-character format string.

    Format

      #include  <wchar.h>

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

1  –  Arguments

 s

    A pointer to a wide-character string from which the input is to
    be obtained.

 format

    A pointer to a wide-character string containing the format
    specifications.

  . . .

    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.

2  –  Description

    The swscanf function is equivalent to the fwscanf function,
    except that the first argument specifies a wide-character string
    rather than a stream. Reaching the end of the wide-character
    string is the same as encountering EOF for the fwscanf function.

    See also fwscanf.

3  –  Return Values

    x                  The number of input items assigned, sometimes
                       fewer than provided for, or even 0 in the
                       event of an early matching failure.
    EOF                Indicates an error. An input failure occurred
                       before any conversion.
Close Help