Digital UNIX Diffs - setbuf(5) Digital UNIX Diffs - setbuf(5)NAME
setbuf, setvbuf - Assign buffering to a stream
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
void setbuf(
FILE *stream,
char *buffer);
int setvbuf(
FILE *stream,
char *buffer,
int mode,
size_t size);
PARAMETERS
Specifies the input/output stream. Points to a character array.
Determines how the stream parameter is buffered. Specifies the size of
the buffer to be used.
DIFFERENCESvms-vaxc(5): OpenVMS VAX C vs DEC C Differences
The value of the DEC C RTL constant BUFSIZ is 8192, compared with 512
for VAX C. This changes the behavior of setbuf(3) and setvbuf(3)
between the 2 RTLs. setvbuf(3) ignores buffers smaller than BUFSIZ.
This results in the user's buffer not being used.
RELATED INFORMATION
Functions: setbuf(3), setvbuf(3)CATEGORY INDEXvms-vaxc(5)
delim off
Digital UNIX Diffs - setbuf(5)