HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)

a
adb(1) adb(1)
1. Conversion Specifier
Each conversion specifier consists of an optional count or pspec followed by an optional size specifier charac-
ter, followed by a conversion specifier character.
count This is available only for the traditional style format string. The count specifies the number of times
this conversion specifier is to be repeated. If not specified, count is assumed to be 1.
pspec This is available only for the
printf-style format string. It is a sequence of flags, fieldwidth and
precision as in the printf(3S) library function.
size specifier character
This specifies the size of object to which this is applied. Size can be specified in two ways. One is
using absolute size specifier and other is relative size specifier. Absolute size specifiers are as fol-
lows.
b The size of the object is 1 byte.
e The size of the object is 2 bytes.
g The size of the object is 4 bytes.
j The size of the object is 8 bytes.
k The size of the object is 16 bytes.
Relative size specifiers are as follows
w The size of the object is the size of a machine word of the target processor.
h The size of the object is half the size of a machine word of the target processor.
l The size of the object is double the size of a machine word of the target processor.
n The size of the object is the size of a pointer on the target processor. This will be different for
wide files and narrow files.
m The size of the object is the size of an instruction of the target processor. This will be supported
only on processors where this is constant.
Conversion Specifier Character
The following characters are supported
a The value of dot is printed in symbolic form.
c The object is printed as a character.
o The object is printed as an unsigned octal number.
d The object is printed as a signed decimal number.
u The object is printed as an unsigned decimal number.
i The object is disassembled as an instruction and printed.
f The object is printed in a floating point format according to its size.
p The object is printed in symbolic form.
s The object is assumed to be a null terminated string and printed. This cannot be used to print
dot.
y The object is cast to type time_t and printed in the ctime(3C) format.
Here the printf-style format strings support only c, o, d, u, x, f, and s. If the size specifier
character is not specified, it is assumed to be b for conversion character c; w for conversion charac-
ters d, u, x, o, and f; m for i; sizeof(time_t) for y; and
w for everything else.
For example.
10=2bo, ’abc’=,"%s", main?4i
2. Dot Operator
A dot operator consists of an optional count, optional size specifier character, and a dot operator character.
count count specifies the number of times this dot operator is to be repeated. If not specified, count is
assumed to be 1. The count is always 1 for printf-style format strings.
HP-UX 11i Version 2: December 2007 Update 9 Hewlett-Packard Company 37