#include <stdio.h>void setbuf(FILE *stream, char *buf);

The setbuf( ) function specifies the buffer that stream will use or, if called with buf set to null, turns off buffering. If a programmer-defined buffer is to be specified, it must be BUFSIZ characters long. BUFSIZ is defined in <stdio.h>.

In C99, stream and buf are qualified by restrict.

Related functions are fopen( ), fclose( ), and setvbuf( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: