Internationalization and localization tools


Multibyte and Wide Character Conversion Function

size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict src, size_t nwc, size_t len, mbstate_t *restrict ps);

Internationalization (I18n) Function Overview

The wcsnrtombs function implements the conversion from wide character strings to multibyte character strings. It is similar to wcsrtombs but, just like mbsnrtowcs, it takes an extra parameter, which specifies the length of the input string.

No more than nwc wide characters from the input string *src are converted. If the input string contains a NULL wide character in the first nwc characters, the conversion stops at this place.

I18n Issues

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