Определить статус преобразуемого объекта, используемого для перезапускаемых mb*() функций
#include <wchar.h>int mbsinit( const mbstate_t *ps );
libc
The following functions use an object of type mbstate_t
so that they can be restarted:
The mbsinit() function determines whether or not the mbstate_t
object pointed to by ps describes an initial conversion state.
![]() | If the object doesn't describe an initial conversion state, it isn't safe for you to use it in one of the above functions, other than the one you've already used it in. |
A nonzero value if ps is NULL
or *ps describes an initial conversion state; otherwise zero.
ANSI, POSIX 1003.1
mblen(), mbrlen(), mbrtowc(), mbsrtowcs(), mbstowcs(), mbtowc(), wcsrtombs(), wcrtomb()
Предыдущий раздел: Описание API системной библиотеки