Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
Guardian Native C Library Calls (f) fwscanf(3)
—At followed by a d, i, o, u, x, X,orn conversion code character indicates that
the receiving variable is treated as a ptrdiff_t or the corresponding unsigned
integer type.
—Az followed by a d, i, o, u, x, X,orn conversion code character indicates that
the receiving variable is treated as a size_t or the corresponding unsigned integer
type.
• A conversion code character convcode that specifies the type of conversion to be
applied:
% Accepts a single % (percent sign) input at this point; no assignment is
done.
c Accepts a single wide-character or a series of wide-characters, which are
converted to a multibyte character or a series of multibyte characters. If
there is either no width or a width of 1 in the conversion specification,
one wide-character is accepted and the corresponding pointer parameter
should be a type char pointer. If there is a width greater than 1, the indi-
cated number of wide-characters are accepted and the pointer parameter
should be an array of type char.
The normal skip over white space is suppressed. Use %1s rather than
%1c to read the next non-white-space character.
C or lc Accepts a single wide-character or a series of wide-characters and stores
the data as a wchar_t type.
If there is either no width or a width of 1 in the conversion specification,
one character is accepted and the corresponding pointer parameter
should be a type wchar_t pointer. If there is a width greater than 1, the
indicated number of characters are accepted and the corresponding
pointer parameter should be an array of type
wchar_t.
The
normal skip over white space is suppressed. Use %1S rather than
%1C to read the next non-white-space character.
For TNS/E systems only, the behavior of lc is the same as the behavior
of C.
d Accepts a decimal integer; the corresponding pointer parameter should
be an integer pointer.
a, A, e, E, f, F, g, G
Accepts a floating-point number. The next field is converted accord-
ingly and stored through the corresponding pointer parameter, which
should be a pointer to a float.
The input format for floating-point numbers is a string of digits with the
following optional characteristics:
— It can be a signed value.
— It can be an exponential value, containing a decimal point fol-
lowed by an exponent field, which consists of an E or e followed
by an optionally signed integer.
527192-018 Hewlett-Packard Company 2−171