c32rtomb
c32rtomb
Defined in header <uchar.h> | ||
---|---|---|
size_t c32rtomb( char* s, char32_t c32, mbstate_t* ps ); | (since C11) |
Converts a single code point from its variable-length 32-bit wide character representation (but typically, UTF-32) to its narrow multibyte character representation.
If s
is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32
(including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s
. At most MB_CUR_MAX
bytes can be writt