Go to the first, previous, next, last section, table of contents.


mbstowcs

Syntax

#include <stdlib.h>

size_t mbstowcs(wchar_t *wcs, const char *s, size_t n);

Description

Converts a multibyte string to a wide character string. The result will be no more than n wide characters.

Return Value

The number of wide characters stored.

Portability

ANSI, POSIX

Example

int wlen = mbtowcs(wbuf, string, sizeof(wbuf)/sizeof(wchar_t));


Go to the first, previous, next, last section, table of contents.