nuttx/libs/libc/wchar
Tiago Medicci Serrano fdc0b608b5 libc/wcsrtombs: Fix the wcsrtombs() according to the POSIX standard
According to https://pubs.opengroup.org/onlinepubs/9799919799/, the
expected behavior for the wcstombs() function is that it should
convert the wide-character codes stoping conversion either when a
character sequence exceeds the limit of n total bytes or if a null
byte is stored. In the first case, the null-terminated value should
not be appended to the dst buffer.

Currently, no null-terminator is appended to the dst buffer, even
when it's expected to be appended, generating erroneous output.
2025-02-06 10:24:55 +01:00
..
CMakeLists.txt
lib_btowc.c
lib_mbrlen.c
lib_mbrtowc.c
lib_mbsinit.c
lib_mbsnrtowcs.c
lib_mbsrtowcs.c
lib_swprintf.c
lib_wcrtomb.c
lib_wcscat.c
lib_wcschr.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_wcscmp.c
lib_wcscoll.c
lib_wcscpy.c
lib_wcscspn.c
lib_wcsftime.c
lib_wcslcat.c
lib_wcslcpy.c
lib_wcslen.c
lib_wcsncat.c
lib_wcsncmp.c
lib_wcsncpy.c
lib_wcsnrtombs.c
lib_wcspbrk.c
lib_wcsrchr.c
lib_wcsrtombs.c
lib_wcsspn.c
lib_wcsstr.c
lib_wcstod.c
lib_wcstof.c
lib_wcstok.c
lib_wcstol.c
lib_wcstold.c
lib_wcstoll.c
lib_wcstoul.c
lib_wcstoull.c
lib_wcswcs.c
lib_wcswidth.c
lib_wcsxfrm.c
lib_wctob.c
lib_wcwidth.c
lib_wmemchr.c
lib_wmemcmp.c
lib_wmemcpy.c
lib_wmemmove.c
lib_wmemset.c
Make.defs