mirror of https://github.com/mkerrisk/man-pages
mbsnrtowcs.3: Note behavior of mbsnrtowcs() for an incomplete character
Note the behavior of mbsnrtowcs() when an incomplete character is found at end of the input buffer. Reported-by: Igor Liferenko <igor.liferenko@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9caecea1f2
commit
5b711f5e45
|
@ -127,6 +127,12 @@ characters written to
|
|||
excluding the terminating null wide character,
|
||||
is returned.
|
||||
.PP
|
||||
According to POSIX.1,
|
||||
if the input buffer ends with an incomplete character,
|
||||
it is unspecified whether conversion stops at the end of
|
||||
the previous character (if any), or at the end of the input buffer.
|
||||
The glibc implementation adopts the former behavior.
|
||||
|
||||
If
|
||||
.IR dest
|
||||
is NULL,
|
||||
|
|
Loading…
Reference in New Issue