Definition | #include <wchar.h> size_t mbsrtowcs(wchar_t *dst, const char **src, size_t len, mbstate_t *ps);
Conversion stops on encountering a terminating null character, which is also converted and Conversion stops earlier in two cases:
If dst is not a null pointer, the pointer object pointed to by src is assigned one of the following
If dst is not a null pointer and if the conversion stopped due to reaching a terminating null | |
Return val. |
| if a conversion error occurs, i.e. a sequence of bytes that do not form a valid |
Number of successfully converted multibyte chatacters otherwise. The terminating null character, if any, is not included in the count. | ||
See also | mblen, mbtowc, wcstombs, wctomb |