Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: stdlib.h

mbtowc()

IMPORT_C int mbtowc(wchar_t *pwc, const char *s, size_t n);

Description

Converts the multibyte character addressed by s into the corresponding UNICODE character pwc

Parameters

wchar_t *pwc

Is the address of a wide character, type wchar_t, to receive the UNICODE equivalent of s.

const char *s

Points to the multibyte character to be converted to UNICODE.

size_t n

Is the maximum width, in bytes, for which to scan s for a valid multibyte sequence. Regardless of the value of n, no more than MB_CUR_MAX bytes are examined.

Return value

int

the length, in bytes, of the multibyte character for which it found a UNICODE equivalent