Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C Library Calls (n - r) printf(3)
—Az followed by an n conversion specifier indicates that the argument will be
treated as a pointer to a signed integer type corresponding to the size_t argu-
ment.
A character that indicates the type of conversion to be applied:
% Performs no conversion. Prints %.
d or i Accepts an integer (int) value and converts it to signed decimal notation.
The precision species the minimum number of digits to appear. If the
value being converted can be represented in fewer digits, it is expanded
with leading zeros. The default precision is 1. The result of converting a
0 (zero) value with a precision of 0 (zero) is a null string. Specifying a
field width with a 0 (zero) as a leading character causes the field width
value to be padded with leading zeros.
u Accepts an integer (int) value and converts it to unsigned decimal nota-
tion. The precision specifies the minimum number of digits to appear. If
the value being converted can be represented in fewer digits, it is
expanded with leading zeros. The default precision is 1. The result of
converting a 0 (zero) value with a precision of 0 (zero) is a null string.
Specifying a field width with a 0 (zero) as a leading character causes the
field width value to be padded with leading zeros.
o Accepts an integer (int) value and converts it to unsigned octal notation.
The precision species the minimum number of digits to appear. If the
value being converted can be represented in fewer digits, it is expanded
with leading zeros. The default precision is 1. The result of converting a
0 (zero) value with a precision of 0 (zero) is a null string. Specifying a
field width with a 0 (zero) as a leading character causes the field width
value to be padded with leading zeros. An octal value for field width is
not implied.
x or X Accepts an integer (int) value and converts it to unsigned hexadecimal
notation. The letters abcdef are used for the x conversion and the letters
ABCDEF are used for the X conversion. The precision specifies the
minimum number of digits to appear. If the value being converted can be
represented in fewer digits, it is expanded with leading zeros. The
default precision is 1. The result of converting a 0 (zero) value with a
precision of 0 (zero) is a null string. Specifying a field width with a 0
(zero) as a leading character causes the field width value to be padded
with leading zeros.
f Accepts a float or double value and converts it to decimal notation in the
format [-]ddd.ddd. The number of digits after the radix character is
equal to the precision specification. If no precision is specified, six digits
are output. If the precision is 0 (zero), no radix character appears (unless
the # flag is specified). If a radix character is output, at least one digit is
output before it. The value is rounded to the appropriate number of
digits.
e or E Accepts a float or double value and converts it to the exponential form
[-]d.ddde+/-dd. There is one digit before the radix character and the
number of digits after the radix character is equal to the precision
specification. If no precision is specified, six digits are output. If the pre-
cision is 0 (zero), no radix character appears (unless the # flag is
527192-018 Hewlett-Packard Company 555