summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mbtowc.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/mbtowc.3')
-rw-r--r--lib/libc/locale/mbtowc.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/locale/mbtowc.3 b/lib/libc/locale/mbtowc.3
index fbc0ceb..850e055 100644
--- a/lib/libc/locale/mbtowc.3
+++ b/lib/libc/locale/mbtowc.3
@@ -37,7 +37,7 @@
.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp
.\" $FreeBSD$
.\"
-.Dd April 7, 2004
+.Dd April 11, 2004
.Dt MBTOWC 3
.Os
.Sh NAME
@@ -81,10 +81,12 @@ Otherwise, if
.Fa mbchar
is not a null pointer,
.Fn mbtowc
-returns
+either returns 0 if
+.Fa mbchar
+represents the null wide character, or returns
the number of bytes processed in
.Fa mbchar ,
-or \-1 if no multibyte character
+or returns \-1 if no multibyte character
could be recognized or converted.
In this case,
.Fn mbtowc Ns No 's
OpenPOWER on IntegriCloud