![]() |
![]()
| ![]() |
![]()
LIBRARY#include <xtend/fast-file.h> -lxtend SYNOPSISint xt_ff_flush(xt_ff_t *stream) ARGUMENTSstream Pointer to an xt_ff_t stream DESCRIPTIONxt_ff_flush(stream) writes any buffered output in stream to the underlying file descriptor. This normally happens when the buffer is full, the stream is closed using xt_ff_close(stream), or before a seek is performed on a stream opened for writing. RETURN VALUESReturn code of the underlying write(2) call -1 if stream is not open for writing EXAMPLESxt_ff_t *stream; stream = xt_ff_open(filename, O_WRONLY|O_CREATE); xt_ff_flush(stream); SEE ALSOxt_ff_open(3)
|