OpenBSD manual page server

Manual Page Search Parameters

MBSINIT(3) Library Functions Manual MBSINIT(3)

mbsinitdetermines whether the state object is in initial state

#include <wchar.h>

int
mbsinit(const mbstate_t *ps);

() determines whether the state object pointed to by ps is in initial conversion state, or not.

ps may be a NULL pointer. In this case, () will always return non-zero.

mbsinit() returns:

0
The current state is not in initial state.
non-zero
The current state is in initial state or ps is a NULL pointer.

No errors are defined.

The mbsinit() function conforms to ISO/IEC 9899/AMD1:1995 (“ISO C90, Amendment 1”).

March 29, 2022 OpenBSD-7.3