Syntax | #include <wchar.h> size_t mbsrtowcs(wchar_t *dst, const char **src, size_t len, mbstate_t *ps); | |
Description |
The conversion terminates when a terminating null character is encountered. The null character is also converted and written into the array. The conversion is terminated abnormally if
If dst is not a null pointer, the pointer object pointed to by src is assigned one of the following two values:
If dst is not a null pointer and the conversion terminated when it reached a null character, then the final state is the same as the “initial conversion” state. | |
Return val. | The number of successfully converted multi-byte characters. | |
| if successful. The terminating null character (if present) is not counted. | |
| | if a conversion error occurred, i.e. a sequence of bytes that does not represent a valid multi-byte character was found. The value of the |
See also |
|