3 size_t wcsrtombs(char *restrict s, const wchar_t **restrict ws, size_t n, mbstate_t *restrict st)
9 for (n=0, ws2=*ws; *ws2; ws2++) {
11 l = wcrtomb(buf, *ws2, 0);
12 if (!(l+1)) return -1;
19 if (**ws-1u >= 0x7fu) {
25 l = wcrtomb(s, **ws, 0);
26 if (!(l+1)) return -1;
36 if (**ws-1u >= 0x7fu) {
42 l = wcrtomb(buf, **ws, 0);
43 if (!(l+1)) return -1;