Flush a FILE stream.
- The FILE stream to flush.
Upon successful completion 0 is returned. Otherwise, Stdlib.EOF is returned and the global variable errno is set to indicate the error.
The following errors are specified:
Error Details Errno.EBADF The stream argument is not an open stream, or not a stream open for writing.
The function fflush may also fail and set errno for any of the errors specified for Syscall.write(2).
The function fflush() forces a write of all buffered data for the given output or update stream via the stream's underlying write function. The open status of the stream is unaffected.
If the stream argument is IntPtr.Zero, fflush() flushes all open output streams.