Flushes a file’s output buffer.
fflush
fopen()
If fflush() fails, you can call fstrerror() to find out why.
fflush()
fstrerror()
If you pass fflush() the handle of a file opened with open (i.e., a data set or matrix file), your program will terminate with a fatal error.