Syntax | #include <stdio.h> int fflush(FILE *stream); | |
Description | If stream points to an output stream or an update stream in which the most recent operation was not input, | |
Return val. | 0
| if successful. The buffer was flushed. if an error occurs. The buffer was not flushed. BS2000 stream is not associated with any file (since the file is already closed, for example) or the buffered data could not be transferred. |
Errors |
| |
|
| The |
|
| The file descriptor underlying stream is not valid. |
|
| An attempt was made to write a file that exceeds the maximum file size or the process file size limit (see also |
|
|
|
|
| An I/O error occurred. The process is a member of a background process group attempting to write to its controlling terminal; |
|
| There was no free space remaining on the device containing the file. |
|
| An attempt is made to write to a pipe or FIFO that is not open for reading by any process. A If threads are used, then the function affects the process or a thread in the following manner: If an |
Notes | The program environment determines whether BS2000
In addition, for ANSI functionality only: Buffering does not take place in the case of outputs to strings ( Exception for ANSI functionality:
| |
See also |
|