Manpage of SETLINEBUF
SETLINEBUF
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
3.42 `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 ALSO
setlinebuf
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:31 GMT, May 16, 2005
www.fiveanddime.net