mbstowcs - C stdlib.h

C examples for stdlib.h:mbstowcs

Type

function

From


<cstdlib>
<stdlib.h>

Description

Convert multibyte string to wide-character string

Prototype

size_t mbstowcs (wchar_t* dest, const char* src, size_t max);

Parameters

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.

Return Value

On success, the number of wide characters written to dest.

On error, a value of -1 is returned.


Related Tutorials