4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-29 02:20:21 +08:00

25 lines
341 B
C
Raw Normal View History

#include <newlib.h>
#ifndef _FVWRITE_IN_STREAMIO
#include <reent.h>
#include <stdio.h>
#include <wchar.h>
int
__sfputws_r (struct _reent *ptr,
FILE *fp,
const wchar_t *buf,
size_t len)
{
register int i;
for (i = 0; i < len; i++) {
if (_fputwc_r (ptr, buf[i], fp) == WEOF)
return -1;
}
return (0);
}
#endif