|
|
coherent
setbuf() STDIO setbuf() Set alternative stream buffers #include <stdio.h> vvooiidd sseettbbuuff(_f_p, _b_u_f_f_e_r) FFIILLEE *_f_p; cchhaarr *_b_u_f_f_e_r; The standard I/O library STDIO automatically buffers all data read and written in streams, with the exception of streams to terminal devices. STDIO normally uses malloc to allocate the buffer, which is a char array BUFSIZ characters long; BUFSIZ is defined in the header file stdio.h. setbuf's arguments are the file stream fp and the buffer to be associated with the stream. The call should be issued after the stream has been opened, but before any input or output request has been issued. The _b_u_f_f_e_r passed to setbuf may be NULL, in which case the stream will be unbuffered, or contains at least BUFSIZ bytes. setbuf returns nothing. ***** See Also ***** fopen(), malloc(), STDIO COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.