|
NAMEwcrtomb , c16rtomb ,
c32rtomb —
convert a wide-character code to a character (restartable)
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wchar.h>
size_t
size_t
size_t
DESCRIPTIONThewcrtomb (), c16rtomb () and
c32rtomb () functions store a multibyte sequence
representing the wide character c, including any
necessary shift sequences, to the character array s,
storing a maximum of MB_CUR_MAX bytes.
If s is The mbstate_t argument,
ps, is used to keep track of the shift state. If it is
As certain multibyte characters may only be represented by a
series of 16-bit characters, the RETURN VALUESThese functions return the length (in bytes) of the multibyte sequence needed to represent c, or (size_t)-1 if c is not a valid wide character code.ERRORSThewcrtomb (), c16rtomb () and
c32rtomb () functions will fail if:
SEE ALSOmbrtowc(3), multibyte(3), setlocale(3), wctomb(3)STANDARDSThewcrtomb (), c16rtomb () and
c32rtomb () functions conform to
ISO/IEC 9899:2011 (“ISO C11”).
Visit the GSP FreeBSD Man Page Interface. |