aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/sfputws_r.c
blob: 94b04348ed6e081ebb6b5573cc2e45c4f2f3fbaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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