setlinebuf
—specify line buffering for a file or stream#include <stdio.h> void setlinebuf(FILE *fp);
Description
setlinebuf
specifies that output to the file or stream identified by
fp should be line buffered. This causes the file or stream to pass
on output to the host system at every newline, as well as when the
buffer is full, or when an input operation intervenes.
Warnings
setlinebuf
before performing any file operation
other than opening the file.
Returns
setlinebuf
returns as per setvbuf.
Portability
Supporting OS subroutines required: close
, fstat
, isatty
,
lseek
, read
, sbrk
, write
.