Document that bits are numbered from 1 in the %b format argument.

This commit is contained in:
Ruslan Ermilov 2006-09-08 14:05:03 +00:00
parent d6649c2569
commit 590fd053c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162155

View File

@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd August 10, 2004
.Dd September 8, 2006
.Dt PRINTF 9
.Os
.Sh NAME
@ -90,7 +90,7 @@ The base value is the output base expressed as an integer value;
for example, \e10 gives octal and \e20 gives hexadecimal.
The arguments are made up of a sequence of bit identifiers.
Each bit identifier begins with an integer value which is the number of the
bit this identifier describes.
bit (starting from 1) this identifier describes.
The rest of the identifier is a string of characters containing the name of
the bit.
The string is terminated by either the bit number at the start of the next
@ -140,7 +140,11 @@ and the
.Fn uprintf
functions return the number of characters displayed.
.Sh EXAMPLES
This example demonstrates the use of the \&%b and \&%D conversion specifiers.
This example demonstrates the use of the
.Cm \&%b
and
.Cm \&%D
conversion specifiers.
The function
.Bd -literal -offset indent
void