QP_fclose()

Synopsis

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

Writes out any buffered data for the named stream, and closes the named stream.

QP_fclose() is similar to the library function fclose(3S), 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