setbuffer(3C)
_________________________________________________________________
setbuffer function
Assign a buffer to a specified file.
_________________________________________________________________
Calling Sequence
#include <stdio.h>
FILE *fp;
char *bufptr;
int size;
void setbuffer();
setbuffer(fp, bufptr, size); (or) setbuffer(fp, NULL, size);
where size is the size of the character array bufptr.
Description
The setbuffer function assigns a buffer to a file you specify;
this function is an alternate form of setbuf. 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 the number of characters specified by
size.
Returns
The setbuffer function does not return a value.
Related Functions
See also the functions setbuf, setlinebuf, and setvbuf.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)