mirror of https://github.com/mkerrisk/man-pages
mbstowcs.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d99f93e803
commit
96f2c6a744
|
@ -44,22 +44,21 @@ in the initial state.
|
|||
The conversion can stop for three reasons:
|
||||
.IP 1. 3
|
||||
An invalid multibyte sequence has been encountered.
|
||||
In this case
|
||||
In this case,
|
||||
.I (size_t)\ \-1
|
||||
is returned.
|
||||
.IP 2.
|
||||
.I n
|
||||
non-L\(aq\\0\(aq wide characters have been stored at
|
||||
.IR dest .
|
||||
In this
|
||||
case the number of wide characters written to
|
||||
In this case, the number of wide characters written to
|
||||
.I dest
|
||||
is returned, but the
|
||||
shift state at this point is lost.
|
||||
.IP 3.
|
||||
The multibyte string has been completely converted, including the
|
||||
terminating null wide character (\(aq\\0\(aq).
|
||||
In this case the number of wide characters written to
|
||||
In this case, the number of wide characters written to
|
||||
.IR dest ,
|
||||
excluding the terminating null wide character, is returned.
|
||||
.PP
|
||||
|
|
Loading…
Reference in New Issue