4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 15:07:43 +08:00

24 lines
316 B
C
Raw Normal View History

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