Main index | Section 3 | 日本語 | Deutsch | Options |
#include <stdio.h>
If the stream argument is NULL, fflush() flushes all open output streams.
The fflush_unlocked() function is equivalent to fflush(), except that the caller is responsible for locking the stream with flockfile(3) before calling it. This function may be used to avoid the overhead of locking the stream and to prevent races when multiple threads are operating on the same stream.
The function fpurge() erases any input or output buffered in the given stream. For output streams this discards any unwritten output. For input streams this discards any input read from the underlying object but not yet obtained via getc(3); this includes any text pushed back via ungetc(3).
[EBADF] | |
The stream argument is not an open stream. | |
The function fflush() may also fail and set errno for any of the errors specified for the routine write(2), except that in case of stream being a read-only descriptor, fflush() returns 0.
FFLUSH (3) | May 1, 2020 |
Main index | Section 3 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | The Unix phenomenon is scary. It doesn't go away. | ” |
— Steve Ballmer |