[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    wsscanf(3I) manual page Table of Contents

Name

wsscanf - formatted input conversion

Synopsis

cc [ flag ... ] file ... -lw [ library ... ]


#include <stdio.h>
#include <widec.h>

int wsscanf(wchar_t *s, const char *format, /* pointer */ ... );

MT-Level

MT-Safe

Description

wsscanf() reads Process Code characters from the Process Code string s, interprets them according to the format, and stores the results in its arguments. wsscanf() expects, as arguments, a control string format, and a set of pointer arguments indicating where the converted input should be stored. The results are undefined if there are insufficient args for the format. If the format is exhausted while args remain, the excess args are simply ignored.

The conversion specifications and behavior of wsscanf() are the same as the regular sscanf(3S) function except that the source is a Process Code string for wsscanf(), and on Extended Unix Code (EUC) character string for sscanf(3S) .

Return Values

wsscanf() returns the number of characters matched. On error wsscanf() returns a negative value.

See Also

wsprintf(3I) , printf(3S) , scanf(3S)


Table of Contents