5 size_t c16rtomb(char *restrict s, char16_t c16, mbstate_t *restrict ps)
7 unsigned *x = (unsigned *)ps;
15 if (!*x && c16 - 0xd800u < 0x400) {
16 *x = c16 - 0xd7c0 << 10;
21 if (c16 - 0xdc00u >= 0x400) goto ilseq;
22 else wc = *x + c16 - 0xdc00;
27 return wcrtomb(s, wc, 0);