Previous Page
Next Page

mbsinit

Determines whether a multibyte parse state variable represents the initial state

#include <wchar.h>
int mbsinit ( 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.

Example

See the example for mblen( ) in this chapter.

See Also

wcrtomb( ), wcsrtombs( ), mbsrtowcs( ), mbrtowc( )


Previous Page
Next Page