SETLINEBUF(3) NEWLIB SETLINEBUF(3)NAME
4.56 `setlinebuf'--specify line buffering for a file or stream
SYNOPSIS
#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*
You may only use `setlinebuf' before performing any file operation
other than opening the file.
RETURNS
`setlinebuf' returns as per setvbuf.
PORTABILITY
This function comes from BSD not ANSI or POSIX.
Supporting OS subroutines required: `close', `fstat', `isatty',
`lseek', `read', `sbrk', `write'.
SEE ALSOsetlinebuf is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 SETLINEBUF(3)