QP_getchar()

Synopsis

     #include <quintus/quintus.h>
     
     int QP_getchar()
     

Defined as QP_getc(QP_curin).

QP_getchar() is similar to the library function getchar(3V), however it operates on the Prolog current input stream rather than the standard input stream stdin. Like getchar(3V), QP_getchar() is a macro.

Return Value


QP_SUCCESS
If function succeeds
QP_ERROR
Otherwise

See Also

QP_ferror(), QP_fopen(), QP_fread(), QP_gets(), QP_putc(), QP_ungetc() fli-ios