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

f
fwprintf(3C) fwprintf(3C)
an optional h specifying that a following
d, i, o, u, x or X conversion wide-character
applies to a type short int or type unsigned short int argument (the argument will have
been promoted according to the integral promotions, and its value will be converted to type
short int or unsigned short int before printing)
an optional
hh specifying that a following
d, i, o, u, x or X conversion specifier applies to a
signed char or unsigned char argument ( the argument will have been promoted according
to the integer promotions, but its value will be converted to short or unsigned short before
printing)
an optional
hh specifying that a following
n conversion specifier applies to a pointer to a
signed char argument
an optional
hL specifying that a following
e, f,org conversion wide-character applies to a
type
extended which is the 80-bit IEEE-754 double-extended type in the Itanium(
architecture
an optional
j specifying that a following
d, i, o, u, x or X conversion specifier applies to an
intmax_t or uintmax_t argument
an optional
j specifying that a following n conversion specifier applies to a pointer to an
intmax_t argument
an optional l (ell) specifying that a following c conversion wide-character applies to a
wint_t argument
an optional l (ell) specifying that a following s conversion wide-character applies to a
wchar_t argument
an optional ll (ell-ell) specifying that following d, i, o, u,
x or X conversion specifier
applies to a long long or unsigned long long argument
an optional
ll (ell-ell) specifying that following n conversion specifier applies to a pointer
to a long long argument
an optional t specifying that a following d, i, o, u,
x or X conversion specifier applies to a
ptrdiff_t or the corresponding unsigned type argument
an optional
t specifying that a following n conversion specifier applies to a pointer to a
ptrdiff_t argument
an optional z specifying that a following d, i, o, u,
x or X conversion specifier applies to a
size_t argument or the corresponding signed integer type argument
an optional
z specifying that a following n conversion specifier applies to a pointer to a
size_t argument
5. A conversion wide-character that indicates the type of conversion to be applied.
A field width, or precision, or both, may be indicated by an asterisk (*). In this case an argument of type
int supplies the field width or precision. Arguments specifying field width,orprecision, or both must
appear in that order before the argument, if any, to be converted. A negative field width is taken as a
-
flag followed by a positive field width. A negative precision is taken as if the precision were omitted. In for-
mat wide-character strings containing the
%n$ form of a conversion specification, a field width or precision
may be indicated by the sequence
%n$, where m is a decimal integer in the range [1, {NL_ARGMAX}]
giving the position in the argument list (after the format argument) of an integer argument containing the
field width or precision, for example:
wprintf(L"%1$d:%2$. *3$d:%4$, *3$d\n", hour, min, precision, sec);
The format can contain either numbered argument specifications (that is, %n$ and *m$), or unnumbered
argument specifications (that is, % and *), but normally not both. The only exception to this is that %% can
be mixed with the %n$ form. The results of mixing numbered and unnumbered argument specifications in
a format wide-character string are undefined. When numbered argument specifications are used, specify-
ing the Nth argument requires that all the leading arguments, from the first to the (N-1)th, are specified in
the format wide-character string.
The flag wide-characters and their meanings are:
The integer portion of the result of a decimal conversion (%i, %d, %u, %g, or %G ) will be
formatted with thousands grouping wide-characters. For other conversions the behavior is
undefined. The non-monetary grouping wide-character is used.
HP-UX 11i Version 3: February 2007 2 Hewlett-Packard Company 477