QP_fgetc()

Synopsis

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

Behaves like QP_getc(), but is a function rather than a macro.

QP_fgetc() is similar to library function fgetc(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_ferror(), QP_fopen(), QP_fread(), QP_putc(), QP_ungetc() fli-ios