1 #include <newlib.h> 2 3 #ifndef _FVWRITE_IN_STREAMIO 4 5 #include <stdio.h> 6 7 int __sfputs(FILE * fp,const char * buf,size_t len)8__sfputs ( 9 FILE *fp, 10 const char *buf, 11 size_t len) 12 { 13 register size_t i; 14 15 for (i = 0; i < len; i++) { 16 if (fputc (buf[i], fp) == EOF) 17 return -1; 18 } 19 return (0); 20 } 21 22 #endif 23