Fflush

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT fflush ( <INT filehandle> )

Clears internal data buffers for the file associated with the filehandle. The file has to be opened for output with the Readwrite_modes. This function comes from the standard C library, this is a miscellaneous function.


Parameters

INT filehandle - The FileHandle of the file returned by fopen().

Returns

INT : - the status result of the action.

EOF (-1) - an error was detected, or end of file has been reached.
0 - normal condition, everything is fine.