HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)

f
fwscanf(3C) fwscanf(3C)
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), orien-
tation(5), thread_safety(5), glossary(9).
HP-UX 11i Version 3: February 2007 5 Hewlett-Packard Company 485