aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2011-04-06 11:13:55 +0000
committerGlen Barber <gjb@FreeBSD.org>2011-04-06 11:13:55 +0000
commit23b9768b3c308c9feeff45446acdcb6164a0063e (patch)
treec43739054f406ce80ea2de0ce64a67f2fe1de5cb /lib/libutil
parentd1a5cbcc343802259000fe3c356c76614c4e5e24 (diff)
Notes
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/humanize_number.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libutil/humanize_number.3 b/lib/libutil/humanize_number.3
index 76d5677cb566..42cf899b1636 100644
--- a/lib/libutil/humanize_number.3
+++ b/lib/libutil/humanize_number.3
@@ -56,12 +56,12 @@ The
function formats the signed 64-bit quantity given in
.Fa number
into
-.Fa buffer .
+.Fa buf .
A space and then
.Fa suffix
is appended to the end.
The buffer pointed to by
-.Fa buffer
+.Fa buf
must be at least
.Fa len
bytes long.
@@ -69,7 +69,7 @@ bytes long.
If the formatted number (including
.Fa suffix )
would be too long to fit into
-.Fa buffer ,
+.Fa buf ,
then divide
.Fa number
by 1024 until it will.
@@ -98,7 +98,7 @@ The
argument must be at least 4 plus the length of
.Fa suffix ,
in order to ensure a useful result is generated into
-.Fa buffer .
+.Fa buf .
To use a specific prefix, specify this as
.Fa scale
(multiplier = 1024 ^ scale).
@@ -139,7 +139,7 @@ with 1000 instead of 1024.
The
.Fn humanize_number
function returns the number of characters stored in
-.Fa buffer
+.Fa buf
(excluding the terminating
.Dv NUL )
upon success, or \-1 upon failure.