QP_ungetc()

Synopsis

     #include <quintus/quintus.h>
     
     int QP_ungetc(c, stream)
     int        c;
     QP_stream *stream;
     

Pushes the character c back onto Prolog input stream stream.

QP_ungetc() is similar to the library function ungetc(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_fseek(), QP_getc() fli-ios