Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
setbuf - Set input/output buffer
&pagelevel(4)&pagelevel
Definition | #include <stdio.h> void setbuf(FILE *fp, char *buffer); setbuf sets up a memory area for the file with the file pointer fp. This memory area is then used instead of the area assigned by the system for buffering the input/output data. The file pointer fp must point to a file which is already open and for which no read or write functions have yet been performed. |
Parameters
FILE *fp
| Pointer to the file for which an input/output buffer is to be made available. char *buffer Pointer to the area to be used as the buffer or NULL. If the argument is a NULL pointer, the buffer assigned by the system is used. |
Note | The pointer buffer must point to an area of size BUFSIZ for a file with default attributes. BUFSIZ is defined in <stdio.h>. If the blocking factor is explicitly defined with the BUFFER-LENGTH parameter of the ADD-FILE-LINK command, the size of the area must correspond to this defined blocking size. |
See also | setvbuf |