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