Multi byte to Wide character conversion functions in C++: btowc, mbsinit, mbrlen, wctob

btowc function: It is used to convert a multi byte character to wide character.


win_t btowc(int ch)

mbsinit function: For an initial conversion state of s, true is returned.


int mbsinit(const mbstate_t *s)

mbrlen function: It is a mblen function which can be restarted.


size_t mbrlen(const char *str, size_t x, mbstate_t *s)

wctob function: It is used to convert argument to one byte multibyte form.


int wctob(wint_t ch)

Leave a Reply