Internationalization and localization tools


Multibyte and Wide Character Conversion Function

size_t mbsrtowcs(wchar_t *dst, const char **src, size_t len, mbstate_t *ps);

Internationalization (I18n) Function Overview

The mbsrtowcs function converts the multibyte string beginning at *src to a sequence of wide characters, and stores them in dst, keeping track of the conversion in ps and storing no more than n wide characters. It returns the number of converted multibyte characters, or (size_t)-1 in the event of an error.

I18n Issues

Prior to calling mbsrtowcs, ensure that the current locale is set correctly.

Recommended Replacements*

There are no variations of this conversion function.

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Multibyte and Wide Character Conversion Functions

 

Lingoport internationalization and localization services and software