Converts a multibyte character to a wide-character code, using conversion states.
#include <wchar.h> int mbrtowc ( wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
(IN) Points to a buffer to receive the converted character.
(IN) Points to the character whose bytes are to be converted.
(IN) Specifies the maximum number of bytes to examine.
(IN) Points to the conversion state of the character sequence. If ps is a NULL pointer, mbrlen uses its own state, which is initialized at program startup. A thread-safe application must not pass a NULL pointer.
Returns the first of the following that applies: