Concept Framework 1.0 documentation | Contents | Index |
Name | Version | Deprecated |
fflush | version 1.0 | no |
number fflush(number fd) |
fd | [in] A valid file descriptor |
The fflush function flushes a stream associated with file descriptor fd. If the file associated with fd is open for output, fflush writes to that file the contents of the buffer associated with the stream. If the stream is open for input, fflush clears the contents of the buffer.
fflush returns 0 if the buffer was successfully flushed. The value 0 is also returned in cases in which the specified stream has no buffer or is open for reading only. Buffers are normally maintained by the operating system, which determines the optimal time to write the data automatically to disk: when a buffer is full, when a stream is closed, or when a program terminates normally without closing the stream. The commit-to-disk feature of the run-time library lets you ensure that critical data is written directly to disk rather than to the operating-system buffers. |
import standard.C.io |
Documented by Simona Plesuvu, generation time: Thu Oct 15 20:02:04 2009 GMT | (c)2009 RadGs Software |