std::c16rtomb (3) Linux Manual Page
std::c16rtomb – std::c16rtomb
Synopsis
Defined in header <cuchar>
std::size_t c16rtomb( char* s, char16_t c16, std::mbstate_t* ps ); (since C++11)
Converts a single code point from variable-length 16-bit character representation (typically, UTF-16) to a narrow multibyte character representation.
If s is not a null pointer and c16 is the last 16-bit code unit in a valid variable-length encoding of a code point, the function determines the number of bytes necessary to store the multibyte character representation of that code point (including any shift sequences, and taking into account the current multibyte conversion state *ps), and stores the multibyte character representation in the character array whose first element is pointed to by s, updating *ps as necessary. At most MB_CUR_MAX bytes can be written by this function.
If s is a null pointer, the call is equivalent to std::c16rtomb(buf, u’
