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:
Michael Kerrisk 2016-11-26 14:15:59 +01:00
parent 9caecea1f2
commit 5b711f5e45
1 changed files with 6 additions and 0 deletions

View File

@ -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,