#include "stdio_impl.h"
+#include <wchar.h>
+#include <limits.h>
+#include <ctype.h>
wint_t __fputwc_unlocked(wchar_t c, FILE *f)
{
FLOCK(f);
c = __fputwc_unlocked(c, f);
FUNLOCK(f);
- return 0;
+ return c;
}
weak_alias(__fputwc_unlocked, fputwc_unlocked);