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