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