summaryrefslogtreecommitdiff
path: root/src/string/wcsncpy.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2025-05-05 09:27:29 -0400
committerRich Felker <dalias@aerifal.cx>2025-05-05 09:27:29 -0400
commit23febbd3c5d6b4e367faee4f39b8e8c3b95ab588 (patch)
tree6ef7c2822219bff630683b81f5056737d3ab80fb /src/string/wcsncpy.c
parent6915b34860459a963fb1ba468a4d5389dd65c67b (diff)
downloadmusl-23febbd3c5d6b4e367faee4f39b8e8c3b95ab588.tar.gz
align mbsnrtowcs behavior on partial character with new requirements
POSIX 2024 added a requirement that mbsnrtowcs, like mbrtowc, consume any final partial character and store it in the mbstate_t object before returning. this was previously unspecified but documented as a potential future change. an internal mbstate_t object is added for the case where the argument is a null pointer. previously this was not needed since no operations could modify the internal object and not processing it at all gave the same behavior "as if" there were an internal object.
Diffstat (limited to 'src/string/wcsncpy.c')
0 files changed, 0 insertions, 0 deletions