buffer runs full.
*/
stream->buffer[ stream->bufidx++ ] = *s;
- /* TODO: Should IOLBF flush on \n, or the correct EOL sequence of the system? */
- if ( ( stream->bufidx == stream->bufsize )
- || ( ( stream->status & _IOLBF ) && *s == '\n' ) )
+ if ( ( stream->bufidx == stream->bufsize ) ||
+ ( ( stream->status & _IOLBF ) && *s == '\n' )
+ )
{
if ( _PDCLIB_flushbuffer( stream ) == EOF )
{
int main( void )
{
- char const * const testfile = "testfile";
char const * const message = "SUCCESS testing fputs()";
FILE * fh;
remove( testfile );