why wcrtomb and wcsrtombs need mbstate?
did I understand correctly that of the 4 functions ( wcrtomb, mbrtowc, wcsrtombs and mbsrtowcs ), only mbrtowc can leave behind not initial mbstate? are there any examples of using wcrtomb and wcsrtombs with a non-trivial initial state? c multibyte-functions multibyte-characters