summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2001-09-07 12:38:10 +0000
committerasmodai <asmodai@FreeBSD.org>2001-09-07 12:38:10 +0000
commitb883ee05be33784c01a80c5bc5aaecad8607030d (patch)
tree04b5b572714d6d934f9f8f400e31548ff23d31e7 /lib
parent890e070aa1ce651e434526d5c4550648f1717ae0 (diff)
downloadFreeBSD-src-b883ee05be33784c01a80c5bc5aaecad8607030d.zip
FreeBSD-src-b883ee05be33784c01a80c5bc5aaecad8607030d.tar.gz
Fix some mdoc nits caused by my knowledge not being too up-to-date on
mdocNG. Submitted by: dd
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/strfmon.321
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3
index cb87c61..5da7c96 100644
--- a/lib/libc/stdlib/strfmon.3
+++ b/lib/libc/stdlib/strfmon.3
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <monetary.h>
+.In monetary.h
.Ft ssize_t
.Fn strfmon "char *s" "size_t maxsize" "const char *format" "..."
.Sh DESCRIPTION
@@ -41,27 +41,30 @@ The
.Fn strfmon
function places characters into the array pointed to by
.Fa s
-as controlled by the strong pointed to by
+as controlled by the string pointed to by
.Fa format .
No more than
.Fa maxsize
bytes are placed into the array.
.Sh RETURN VALUES
-If the total number of resulting bytes including the terminating null
+If the total number of resulting bytes including the terminating
+.Dv NULL
byte is not more than
.Fa maxsize ,
-.Nm
+.Fn strfmon
returns the number of bytes placed into the array pointed to by
.Fa s ,
-not including the terminating null byte.
-Otherwise, -1 is returned,
+not including the terminating
+.Dv NULL
+byte.
+Otherwise, \-1 is returned,
the contents of the array are indeterminate,
and
.Va errno
is set to indicate the error.
.Sh ERRORS
The
-.Nm
+.Fn strfmon
function will fail if:
.Bl -tag -width Er
.It Bq Er E2BIG
@@ -76,10 +79,10 @@ function
conforms to
.St -xpg4
and
-.St -susv2
+.St -susv2 .
.Sh AUTHORS
The
-.Nm
+.Fn strfmon
function was implemented by
.An Alexey Zelkin Aq phantom@FreeBSD.org .
.Pp
OpenPOWER on IntegriCloud