mbsinit

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

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

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.

Parameters

ps - pointer to the mbstate_t object to examine

Return value

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