QP_ferror()

Synopsis

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

Returns non-zero when an error has occurred reading from or writing to the named stream, otherwise zero.

QP_ferror() is similar to the library function ferror(3V), however the return values differ and stream is a Prolog stream rather than a stdio stream.

Return Value


QP_SUCCESS
If function succeeds
QP_ERROR
Otherwise

See Also

QP_fopen() fli-ios