mbsrtowcs - C wchar.h

C examples for wchar.h:mbsrtowcs

Type

function

From


<cwchar>
<wchar.h>

Prototype

size_t mbsrtowcs (wchar_t* dest, const char** src, size_t max, mbstate_t* ps);

Description

Convert multibyte string to wide-character string

Parameters

Parameter Description
dest Pointer to an array of wchar_t
src C multibyte string to be interpreted
max Maximum number of wide characters to write to dest.
ps Pointer to a mbstate_t object that defines a conversion state.

Return Value

The number of wide characters written to dest.

On error, the function sets errno to EILSEQ and returns -1.


Related Tutorials