crt: new implementation for C95 conversion functions
New implementation writes to output buffer only if successful
conversion has occured. CRT's versions and old implementation may
write to out buffer even if conversion has failed.
POSIX specifies that C95 conversion functions *may* fail with errno
set to EINVAL if conversion state described in `mbstate_t` is invalid.
This error condition is now possible with mbrlen, mbrtowc, mbsrtowcs,
wcrtomb and wcsrtombs functions.
Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com>
2 files changed