diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2013-08-28 13:55:24 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2013-08-28 13:55:24 +0000 |
commit | e2807746d7fb64091540075f7d6b421314d0a6a5 (patch) | |
tree | c4dd370d9bfa6cf113e3a9216019c526fb7c8a6c /lib/libc | |
parent | ac6fe460dfe23aed56c4d2ed1df96fc84dc2e61e (diff) |
Cosmetic tweaks of wcrtomb(3) RETURN VALUES section. ok jmc
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/wcrtomb.3 | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/libc/locale/wcrtomb.3 b/lib/libc/locale/wcrtomb.3 index 8a4bf7db79f..d7b243158bd 100644 --- a/lib/libc/locale/wcrtomb.3 +++ b/lib/libc/locale/wcrtomb.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wcrtomb.3,v 1.5 2013/06/05 03:39:22 tedu Exp $ +.\" $OpenBSD: wcrtomb.3,v 1.6 2013/08/28 13:55:23 stsp Exp $ .\" $NetBSD: wcrtomb.3,v 1.4 2003/09/08 17:54:31 wiz Exp $ .\" .\" Copyright (c)2002 Citrus Project, @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: June 5 2013 $ +.Dd $Mdocdate: August 28 2013 $ .Dt WCRTOMB 3 .Os .\" ---------------------------------------------------------------------- @@ -103,17 +103,15 @@ which is initialized at startup time of the program. .\" ---------------------------------------------------------------------- .Sh RETURN VALUES .Fn wcrtomb -returns: -.Bl -tag -width 012345678901 -.It "positive" -The number of bytes (including any shift sequences) -which are stored in the array. -.It "(size_t)-1" +returns the number of bytes (including any shift sequences) +which are stored in the array pointed to by +.Fa s . +If .Fa wc -is not a valid wide character. -In this case, +is not a valid wide character, .Fn wcrtomb -also sets +returns (size_t)-1 +and sets .Va errno to indicate error. .El |