QP_fputc()

Synopsis

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

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

QP_fputc() is similar to the library function fputc(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_fclose(), QP_ferror(), QP_fopen(), QP_fread(), QP_getc(), QP_printf(), QP_puts() fli-ios