QP_flush()

Synopsis

     #include <quintus/quintus.h>
     
     int QP_flush(stream)
     QP_stream *stream;
     

Forces the buffered output of the stream stream to be sent to the associated device.

Arguments


stream
pointer to a valid stream structure.

Description

Calls the bottom layer flushing function of Stream to write out the current buffered output of the stream. The output is usually written out to a disk or a tty device.

Return Value


QP_SUCCESS
The function succeeds
QP_ERROR
There is an error in the function call, the error number is stored in both QP_errno and stream->errno.

Errors


QP_E_PERMISSION
stream is not an output stream or it does not permit flushing.
QP_E_CANT_WRITE
Unknown error in the bottom layer of flush function of stream

Errors from host operating system

See Also

flush_output/1.