Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (s) swscanf(3)
—AnL followed by a d, i, o, u, x, X,orn conversion code character indicates that
the receiving variable is treated as a long long or an unsigned long long, which
is a 64-bit integer data type and an HP extension.
—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 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 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 is the same as expected
for the subject sequence of the wcstod( ) function. For more informa-
tion, see the wcstod(3) refernece page.
527187-017 Hewlett-Packard Company 6209