Determine the status of the conversion object used for restartable mb*() functions
#include <wchar.h> int mbsinit( const mbstate_t * ps );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The following functions use an object of type mbstate_t so that they can be restarted:
The mbsinit() function determines whether or not the mbstate_t object pointed to by ps describes an initial conversion state.
A nonzero value if ps is NULL or *ps describes an initial conversion state; otherwise zero.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |