1
#include "stdio_impl.h"
6
wint_t __fputwc_unlocked(wchar_t c, FILE *f)
11
#if 0 // XXX EMSCRIPTEN
15
c = putc_unlocked(c, f);
16
} else if (f->wpos + MB_LEN_MAX < f->wend) {
17
l = wctomb((void *)f->wpos, c);
22
if (l < 0 || __fwritex((void *)mbc, l, f) < l) c = WEOF;
32
for (int i = 0; i < l; i++) {
33
if (fputc(mbc[i], f) == EOF) {
44
wint_t fputwc(wchar_t c, FILE *f)
47
c = __fputwc_unlocked(c, f);
52
weak_alias(__fputwc_unlocked, fputwc_unlocked);
53
weak_alias(__fputwc_unlocked, putwc_unlocked);