Internationalization and localization tools


Wide to Multibyte Character Conversion Function

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

Internationalization (I18n) Function Overview

The wcsrtombs function converts, at most, len wide-characters of the string pointed to by *src to its multibyte equivalent in dst. It uses the mbstate_t ps to track the state of the conversion.

wcsrtombs returns the number of bytes successfully converted, not including the terminating null byte; else (size_t)-1 in the event of an error. It also increments src past the converted characters.

I18n Issues

Prior to calling wcsrtombs, 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