Cygwin: mmap: use 64K pages for bookkeeping, second attempt
[newlib-cygwin.git] / newlib / libc / stdio / sfputws_r.c
blob94b04348ed6e081ebb6b5573cc2e45c4f2f3fbaa
1 #include <newlib.h>
3 #ifndef _FVWRITE_IN_STREAMIO
5 #include <reent.h>
6 #include <stdio.h>
7 #include <wchar.h>
9 int
10 __sfputws_r (struct _reent *ptr,
11 FILE *fp,
12 const wchar_t *buf,
13 size_t len)
15 register int i;
17 for (i = 0; i < len; i++) {
18 if (_fputwc_r (ptr, buf[i], fp) == WEOF)
19 return -1;
21 return (0);
24 #endif