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