wctomb(3) Library Functions Manual wctomb(3) wctomb - C (libc, -lc) #include int wctomb(char *s, wchar_t wc); s NULL, wctomb() wc , s. , , wctomb(), , .. , s. At most MB_CUR_MAX bytes will be written at s. The programmer must ensure that there is enough room to store the multibyte sequence at s. s NULL, wctomb() ( ), , , ; , . s NULL, wctomb() , s. wc ( ), -1. s NULL, wctomb() , , , . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wctomb() | | MT-Unsafe race | +----------------------------+----------------------------------------------------------+--------------------------+ wcrtomb(3) . C11, POSIX.1-2008. POSIX.1-2001, C99. wctomb() LC_CTYPE . MB_CUR_MAX(3), mblen(3), mbstowcs(3), mbtowc(3), wcrtomb(3), wcstombs(3) () Azamat Hackimov Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 8 2026 . wctomb(3)