mbsinit()

Returns the state of a multibyte conversion state.

  #include <wchar.h>
  
  int mbsinit(const mbstate_t *ps);    
Parameter

ps

A pointer to a multibyte conversion state.

Remarks

This function returns true if ps is a null pointer or it points to a conversion state that is at the first position of a multibyte-encoded character. The function returns false otherwise.