X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffwrite.c;fp=functions%2Fstdio%2Ffwrite.c;h=ca439674045b1c31ed1b1bda6bf8296b46545755;hb=dfd2616dce9f95bc9678e7be4c81493e0c442679;hp=3c40186500a88ceac20eed0e02989a2d5ab7d113;hpb=1124828eaa466bef1aef1c7feaa9db62358a7765;p=pdclib.old diff --git a/functions/stdio/fwrite.c b/functions/stdio/fwrite.c index 3c40186..ca43967 100644 --- a/functions/stdio/fwrite.c +++ b/functions/stdio/fwrite.c @@ -27,7 +27,6 @@ size_t fwrite( const void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, str { for ( size_t size_i = 0; size_i < size; ++size_i ) { - /* TODO: Should line-buffered streams be flushed on '\n' or system EOL? */ if ( ( stream->buffer[ stream->bufidx++ ] = ((char*)ptr)[ nmemb_i * size + size_i ] ) == '\n' ) { /* Remember last newline, in case we have to do a partial line-buffered flush */