repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: use 64K pages for bookkeeping, second attempt
[newlib-cygwin.git]
/
newlib
/
libc
/
stdio
/
sfputws_r.c
blob
94b04348ed6e081ebb6b5573cc2e45c4f2f3fbaa
1
#include <newlib.h>
2
3
#ifndef _FVWRITE_IN_STREAMIO
4
5
#include <reent.h>
6
#include <stdio.h>
7
#include <wchar.h>
8
9
int
10
__sfputws_r
(
struct
_reent
*
ptr
,
11
FILE
*
fp
,
12
const wchar_t
*
buf
,
13
size_t
len
)
14
{
15
register
int
i
;
16
17
for
(
i
=
0
;
i
<
len
;
i
++) {
18
if
(
_fputwc_r
(
ptr
,
buf
[
i
],
fp
) ==
WEOF
)
19
return
-
1
;
20
}
21
return
(
0
);
22
}
23
24
#endif