December 2005
Beginner to intermediate
618 pages
20h 19m
English
mbsinit
Determines whether a multibyte parse state variable represents the initial state
#include <wchar.h> intmbsinit( const mbstate_t *state);
The mbsinit() function
tests whether the multibyte parse state variable represents the
initial state. The type mbstate_t
is defined in wchar.h. An
object of this type holds the parse state of a multibyte string or
stream. If the parse state is the initial state, mbsinit() returns a nonzero value;
otherwise, mbsinit() returns 0.
mbsinit() also returns a nonzero
value if the argument is a null pointer.
See the example for mblen() in this
chapter.
Read now
Unlock full access