Flushes the output buffer of a stream.
#include <stdio.h> int fflush ( FILE *fp);
(IN) Points to the file to be flushed.
If successful, returns 0. Otherwise, returns nonzero and sets errno to one of the following:
If the file pointed to by fp is open for output or update, the fflush function causes any unwritten data to be written to the file.
If the file pointed to by fp is open for input or update, the fflush function undoes the effect of any preceding ungetc operation on the stream.
If the value of fp is NULL, all open files are flushed.