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