Formerly ../stdio/fwrite.c.~14~

This commit is contained in:
Roland McGrath 1991-08-31 01:40:36 +00:00
parent 1d00c15186
commit e7cb15a251
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@ DEFUN(fwrite, (ptr, size, nmemb, stream),
default_func
= stream->__room_funcs.__output == __default_room_functions.__output;
if (__stdio_check_offset (stream) == EOF)
{
stream->__error = 1;
goto done;
}
if (stream->__buffer == NULL && default_func &&
stream->__offset == stream->__target)
write_through: