mirror of https://github.com/mkerrisk/man-pages
wcstombs.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
760b892c1b
commit
db59590e7d
|
@ -39,19 +39,20 @@ bytes are written to
|
|||
The conversion
|
||||
starts in the initial state.
|
||||
The conversion can stop for three reasons:
|
||||
.PP
|
||||
1. A wide character has been encountered that can not be represented as a
|
||||
.IP 1. 3
|
||||
A wide character has been encountered that can not be represented as a
|
||||
multibyte sequence (according to the current locale).
|
||||
In this case,
|
||||
.I (size_t)\ \-1
|
||||
is returned.
|
||||
.PP
|
||||
2. The length limit forces a stop.
|
||||
.IP 2.
|
||||
2.
|
||||
The length limit forces a stop.
|
||||
In this case, the number of bytes written to
|
||||
.I dest
|
||||
is returned, but the shift state at this point is lost.
|
||||
.PP
|
||||
3. The wide-character string has been completely converted, including the
|
||||
.IP 3.
|
||||
The wide-character string has been completely converted, including the
|
||||
terminating null wide character (L\(aq\\0\(aq).
|
||||
In this case, the conversion ends in the initial state.
|
||||
The number of bytes written to
|
||||
|
|
Loading…
Reference in New Issue