fwscanf.3c (2010 09)

f
fwscanf(3C) fwscanf(3C)
[ENOMEM] Insufficient storage space is available.
In addition,
fwscanf() may fail if:
[EILSEQ] The stream pointed to by stream is byte-oriented.
In addition,
wscanf() may fail if:
[EILSEQ]
stdin is byte-oriented.
EXAMPLES
The call:
int i, n; float x; char name[50];
n = wscanf(L"%d%f%s", &i, &x, name);
with the input line:
25 54.32E-1 Hamster
will assign to n the value 3, to i the value 25, x the value 5.432, and name will contain the string
Ham-
ster.
The call:
int i; float x; char name[50];
(void)wscanf(L"%2d%f%*d %[0123456789]", &i, &x, name);
with input:
56789 0123 56a72
will assign 56 to i, 789.0 to x, skip 0123, and place the string 56 in name. The next call to
getchar()
will return the character a.
AUTHOR
fwscanf(), wscanf(), swscanf() were developed by HP and Mitsubishi Electric Corporation.
SEE ALSO
fwprintf(3C), getwc(3C), setlocale(3C), wcstod(3C), wcstol(3C), wcrtomb(3C), wcstoul(3C), langinfo(5),
orientation(5), thread_safety(5), glossary(9).
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5