Преобразовать строку из многобайтовых символов в строку из широких символов (с повторным запуском)
#include <wchar.h>size_t mbsrtowcs( wchar_t *dst,const char **src,size_t n,mbstate_t *ps );
NULL
, mbsrtowcs() uses its own internal variable. You can call mbsinit() to determine the status of this variable.libc
The mbsrtowcs() function converts a string of multibyte characters pointed to by src into the corresponding wide characters pointed to by dst, to a maximum of n wide characters, including the terminating NULL
character.
The function converts each character as if by a call to mbtowc() and stops early if:
This function is affected by LC_TYPE
.
NULL
character.
ANSI, POSIX 1003.1
errno mblen(), mbrlen(), mbrtowc(), mbsinit(), mbstowcs(), mbtowc()
Предыдущий раздел: Описание API системной библиотеки