setlinebuf()

alter buffering behavior of stream 

Function


SYNOPSIS

#include <stdio.h>

int setlinebuf(FILE *stream);


DESCRIPTION

The setlinebuf() function lets the program control the buffer of a given stream. This function may be used after the stream pointed to by stream is associated with an open file, but before any other operation is performed on the stream. Except that it returns no value, the setlinebuf() function is equivalent to the setvbuf() function invoked with the values (char *)NULL for buffer, _IONBF for mode and zero for size.


PARAMETERS

stream 

Points to a FILE structure.


RETURN VALUES

If successful, setlinebuf() returns 0. On failure, it returns non-zero if an invalid value is given for mode or if the request cannot be honored.


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
setbuf(), setbuffer(), setvbuf()


PTC MKS Toolkit 10.4 Documentation Build 39.