Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sfputs_r.c « stdio « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8e5fc067f344e317799b36e62f7e2a53e387178c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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