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
|
The conversion
|
||||||
starts in the initial state.
|
starts in the initial state.
|
||||||
The conversion can stop for three reasons:
|
The conversion can stop for three reasons:
|
||||||
.PP
|
.IP 1. 3
|
||||||
1. A wide character has been encountered that can not be represented as a
|
A wide character has been encountered that can not be represented as a
|
||||||
multibyte sequence (according to the current locale).
|
multibyte sequence (according to the current locale).
|
||||||
In this case,
|
In this case,
|
||||||
.I (size_t)\ \-1
|
.I (size_t)\ \-1
|
||||||
is returned.
|
is returned.
|
||||||
.PP
|
.IP 2.
|
||||||
2. The length limit forces a stop.
|
2.
|
||||||
|
The length limit forces a stop.
|
||||||
In this case, the number of bytes written to
|
In this case, the number of bytes written to
|
||||||
.I dest
|
.I dest
|
||||||
is returned, but the shift state at this point is lost.
|
is returned, but the shift state at this point is lost.
|
||||||
.PP
|
.IP 3.
|
||||||
3. The wide-character string has been completely converted, including the
|
The wide-character string has been completely converted, including the
|
||||||
terminating null wide character (L\(aq\\0\(aq).
|
terminating null wide character (L\(aq\\0\(aq).
|
||||||
In this case, the conversion ends in the initial state.
|
In this case, the conversion ends in the initial state.
|
||||||
The number of bytes written to
|
The number of bytes written to
|
||||||
|
|
Loading…
Reference in New Issue