size_t mbsrtowcs(wchar_t *dst, const char **src, size_t len, mbstate_t *ps);
size_t mbsnrtowcs(wchar_t *dst, const char **src, size_t nms, size_t len, mbstate_t *ps);
size_t mbsrtowcs_l(wchar_t *dst, const char **src, size_t len, mbstate_t *ps, locale_t locale);
size_t mbsnrtowcs_l(wchar_t *dst, const char **src, size_t nms, size_t len, mbstate_t *ps, locale_t locale);
- When a sequence of bytes is encountered that does not form a valid character.
- When len codes have been stored into the array pointed to by dst (and dst is not a null pointer).
Each conversion takes place as
if by a call to the
If dst is not a null pointer, the pointer object pointed to by src is assigned either a null pointer (if conversion stopped due to reaching a terminating null character) or the address just past the last character converted (if any). If conversion stopped due to reaching a terminating null character and dst is not a null pointer, the resulting state described is the initial conversion state.
If the specified state pointer is null, the
The behavior of this function is affected by the LC_CTYPE category of the current locale.
Destination buffer to receive converted characters. This can be a null pointer if no conversion is desired.
Pointer to the string to be converted. If dst is not null, the referenced pointer is updated as described above.
Stop reading src after nms bytes.
Maximum number of wide characters to write to dst, if dst is not null.
Conversion state. If this is null, an internal mbstate_t object is used.
If the input conversion
encounters a sequence of bytes that do not form a valid character,
an encoding error occurs. In this case, the
MT-Safe, with exceptions.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
mbrlen(), mbrlen_l(), mbrtowc(), mbrtowc_l(), mbsinit(), mbsinit_l(), newlocale(), setlocale(), wcrtomb(), wcrtomb_l(), wcsrtombs(), wcsrtombs_l()
PTC MKS Toolkit 10.4 Documentation Build 39.