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