Multibyte to Wide Character Conversion Function
size_t mbsnrtowcs(wchar_t *restrict dst, const char **restrict src, size_t nmc, size_t len, mbstate_t *restrict ps);
Internationalization (I18n) Function Overview
The mbsnrtowcs function is very similar to the mbsrtowcs function. All the parameters are the same except for nmc , which is new. The return value is the same as for mbsrtowcs .
This new parameter specifies how many bytes at most can be used from the multibyte character
string. In other words, the multibyte character string *src need not be null-terminated. But if a NULL byte is found within the nmc first bytes of the string, the conversion stops at that point.
I18n Issues
Prior to calling mbsnrtowcs , 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

|