setbuf(3C)
_________________________________________________________________
setbuf function
Assign a buffer to a specified file.
_________________________________________________________________
Calling Sequence
#include <stdio.h>
FILE *fp;
char bufptr[BUFSIZ];
void setbuf();
setbuf(fp, bufptr); (or) setbuf(fp, NULL);
Description
The setbuf function assigns a buffer to a file you specify. If
the buffer pointer bufptr is null (0), it specifies an unbuffered
file and uses single byte I/O. Otherwise, the routine assumes
that the buffer can hold at least BUFSIZ characters. The include
file stdio.h defines BUFSIZ.
Returns
The setbuf function does not return a value.
Related Functions
See also the functions setbuffer, setlinebuf, and setvbuf.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)