QP_fwrite()

Synopsis

     #include <quintus/quintus.h>
     
     int QP_fwrite(ptr, size, nitems, stream)
     char      *ptr;
     int        size;
     int        nitems;
     QP_stream *stream;
     

Writes at most nitems items of data from the block pointed to by ptr to the named Prolog output stream. QP_fwrite() stops writing when it has written nitems of date or if an error condition is encountered on stream.

QP_fwrite() is similar to the library function fwrite().

Return Value


the number of items written
Returned if the function succeeds
QP_ERROR
Otherwise

See Also

QP_fopen(), QP_getc(), QP_gets(), QP_putc(), QP_puts(), QP_printf() fli-ios