- /* FIXME: Think-o. '\n' is lineend, conversion to platform-specific
- tales place only for text streams.
- */
- s = _PDCLIB_eol;
- while ( *s != '\0' )
+ stdout->buffer[ stdout->bufidx++ ] = '\n';
+ if ( ( stdout->bufidx == stdout->bufsize ) ||
+ ( stdout->status & ( _IOLBF | _IONBF ) ) )