Flushes the buffer in the specified stream.
Include
<stdio.h>
Prototype
int fflush(FILE *stream);
Argument
stream |
pointer to the stream to flush |
Return Value
Returns EOF
if a write error occurs; otherwise, returns zero for
success.
Remarks
If stream is a null pointer, all output buffers are written to files.
fflush
has no effect on an unbuffered stream.