mbsinit

From cppreference.com
< c‎ | string‎ | multibyte
Defined in header <wchar.h>
int mbsinit( const mbstate_t* ps);

If ps is not a null pointer, the mbsinit function determines whether the pointed-to mbstate_t object describes the initial conversion state.

Contents

[edit] Notes

Although a zero-initialized mbstate_t always represents the initial conversion state, there may be other values of mbstate_t that also represent the initial conversion state.

[edit] Parameters

ps - pointer to the mbstate_t object to examine

[edit] Return value

0 if ps is not a null pointer and does not reporesent the initial conversion state, nonzero value otherwise.

[edit] Example

[edit] See also

conversion state information necessary to iterate multibyte character strings
(class)
C++ documentation for mbsinit