summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-08 14:05:03 +0000
committerru <ru@FreeBSD.org>2006-09-08 14:05:03 +0000
commit72bebbd5968d80256e977d3c6c6644a0e6ce50a8 (patch)
tree12fadef9788fa4c6929861a649e30c48e3a5ad70 /share/man
parent271e1a38791824da57527f2e960cbdf174835222 (diff)
downloadFreeBSD-src-72bebbd5968d80256e977d3c6c6644a0e6ce50a8.zip
FreeBSD-src-72bebbd5968d80256e977d3c6c6644a0e6ce50a8.tar.gz
Document that bits are numbered from 1 in the %b format argument.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/printf.910
1 files changed, 7 insertions, 3 deletions
diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9
index 7dfd69f..571e7e6 100644
--- a/share/man/man9/printf.9
+++ b/share/man/man9/printf.9
@@ -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
OpenPOWER on IntegriCloud