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: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
stdio
/
sfputs_r.c
blob
8e5fc067f344e317799b36e62f7e2a53e387178c
1
#include <newlib.h>
2
3
#ifndef _FVWRITE_IN_STREAMIO
4
5
#include <reent.h>
6
#include <stdio.h>
7
8
int
9
__sfputs_r
(
struct
_reent
*
ptr
,
10
FILE
*
fp
,
11
const char
*
buf
,
12
size_t
len
)
13
{
14
register
int
i
;
15
16
for
(
i
=
0
;
i
<
len
;
i
++) {
17
if
(
_fputc_r
(
ptr
,
buf
[
i
],
fp
) ==
EOF
)
18
return
-
1
;
19
}
20
return
(
0
);
21
}
22
23
#endif