wcsrtombs(3) Library Functions Manual wcsrtombs(3) wcsrtombs - LIBRARY Standard C library (libc, -lc) #include size_t wcsrtombs(char dest[restrict .len], const wchar_t **restrict src, size_t len, mbstate_t *restrict ps); dest NULL, wcsrtombs() *src , dest. dest len . *ps. wcrtomb(dest, *src, ps) , . dest , *src -- . : o ( ). *src , (size_t) -1, errno EILSEQ. o . *src , , , dest. o The wide-character string has been completely converted, including the terminating null wide character (L'\0'), which has the side effect of bringing back *ps to the initial state. In this case, *src is set to NULL, and the number of bytes written to dest, excluding the terminating null byte ('\0'), is returned. dest NULL, len , , . , ps NULL, , wcsrtombs(). , dest , , len . wcsrtombs() , null. , , (size_t) -1 errno EILSEQ. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wcsrtombs() | | MT-Unsafe | | | | race:wcsrtombs/!ps | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. POSIX.1-2001, C99. wcsrtombs() LC_CTYPE . NULL ps . iconv(3), mbsinit(3), wcrtomb(3), wcsnrtombs(3), wcstombs(3) Azamat Hackimov Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , <>. Linux man-pages 6.8 2 2024 . wcsrtombs(3)