summaryrefslogtreecommitdiffstats
path: root/share/man/man9/printf.9
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-05-07 12:48:38 +0000
committerru <ru@FreeBSD.org>2001-05-07 12:48:38 +0000
commit3426882dda21de4427eccff626ee1161821a51b5 (patch)
tree4bd3c5f8fdb1cf09e09528e394c454cc0810449c /share/man/man9/printf.9
parent0a9fa3241f5d1682903ed99aab43ffc404435e15 (diff)
downloadFreeBSD-src-3426882dda21de4427eccff626ee1161821a51b5.zip
FreeBSD-src-3426882dda21de4427eccff626ee1161821a51b5.tar.gz
A bit of markup and spelling fixes.
Diffstat (limited to 'share/man/man9/printf.9')
-rw-r--r--share/man/man9/printf.934
1 files changed, 17 insertions, 17 deletions
diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9
index 02ec33a..67ebf4f 100644
--- a/share/man/man9/printf.9
+++ b/share/man/man9/printf.9
@@ -25,13 +25,11 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 25, 2001
+.Dd April 25, 2001
.Dt PRINTF 9
.Os
.Sh NAME
-.Nm printf ,
-.Nm uprintf ,
-.Nm tprintf
+.Nm printf , uprintf , tprintf
.Nd formatted output conversion
.Sh SYNOPSIS
.Fd #include <sys/types.h>
@@ -51,9 +49,9 @@ family of functions.
The three functions each use a different output stream.
The
.Fn uprintf
-function outputs to the currect process' controlling tty, while
+function outputs to the current process' controlling tty, while
.Fn printf
-writes to the console as well as to the logging facility.
+writes to the console as well as to the logging facility.
The
.Fn tprintf
function outputs to the tty associated with the process
@@ -61,8 +59,8 @@ function outputs to the tty associated with the process
and the logging facility if
.Fa pri
is not \&-1.
-.Pp
-Each of these related functions use the
+.Pp
+Each of these related functions use the
.Fa fmt
parameter in the same manner as
.Xr printf 3 .
@@ -70,14 +68,14 @@ However,
.Xr printf 9
adds two other conversion specifiers.
.Pp
-The
-.Cm \&%b
+The
+.Cm \&%b
identifier expects two arguments: an
-.Ft int
+.Vt int
and a
-.Ft char * .
+.Vt "char *" .
These are used as a register value and a print mask for decoding bitmasks.
-The print mask is made up of two parts: the base and the
+The print mask is made up of two parts: the base and the
arguments.
The base value is the output base expressed as an integer value;
for example, \\10 gives octal and \\20 gives hexadecimal.
@@ -87,15 +85,17 @@ bit 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
-bit identifier or nul for the last bit identifier.
+bit identifier or
+.Dv NUL
+for the last bit identifier.
.Pp
-The
+The
.Cm \&%D
identifier is meant to assist in hexdumps.
It requires two arguments: a
-.Ft u_char *
+.Vt "u_char *"
pointer and a
-.Ft char *
+.Vt "char *"
string.
The memory pointed to be the pointer is output in hexadecimal one byte at
a time.
OpenPOWER on IntegriCloud