Definition | #include <wchar.h> size_t wcsrtombs(char *dst, const wchar_t **src, size_t len, mbstate_t *ps);
Conversion stops on encountering a terminating null character, which is also converted and stored in the array. 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 values:
If dst is not a null pointer and if the conversion stopped due to reaching a terminating null character, the resulting state described is the initial conversion state. | |
Return val. |
| if a conversion error occurs, i.e. a sequence of bytes that do not correspond to a valid multibyte character are encountered. The value of the |
Number of bytes in the converted multibyte string | ||
otherwise. The terminating null character, if any, is not included in the count. | ||
See also | mblen, mbtowc, wcstombs, wctomb |