diff options
| author | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2001-09-07 12:38:10 +0000 |
|---|---|---|
| committer | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2001-09-07 12:38:10 +0000 |
| commit | fbded4984e0d1e7d5d042aa4f35006bbfb81d118 (patch) | |
| tree | 04b5b572714d6d934f9f8f400e31548ff23d31e7 | |
| parent | 8e37b82334457a93d0e64515cf0ee8c086853142 (diff) | |
Notes
| -rw-r--r-- | lib/libc/stdlib/strfmon.3 | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3 index cb87c6199c1d..5da7c96da8f0 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 |
