_fwrite
if (_fwrite(s, size, stream) != 0)
return _fwrite(s, strlen(s), stream);
return _fwrite(buf, size, (FILE *)state);