mbsinit


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( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net