Name

mbsinit

Synopsis

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.

Example

See the example for mblen() in this chapter.

Get C in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.