1 #include "stdio_impl.h"
4 int fputws(const wchar_t *restrict ws, FILE *restrict f)
6 unsigned char buf[BUFSIZ];
13 while (ws && (l = wcsrtombs((void *)buf, (void*)&ws, sizeof buf, 0))+1 > 1)
14 if (__fwritex(buf, l, f) < l) {
21 return l; /* 0 or -1 */
24 weak_alias(fputws, fputws_unlocked);