C examples for stdlib.h:mbstowcs
function
<cstdlib> <stdlib.h>
Convert multibyte string to wide-character string
size_t mbstowcs (wchar_t* dest, const char* src, size_t max);
Parameter | Description |
---|---|
dest | Pointer to an array of wchar_t elements. |
src | string with the multibyte characters. |
max | Maximum number of wchar_t characters to write to dest. |
On success, the number of wide characters written to dest.
On error, a value of -1 is returned.