Next: cpg-ref-SP_put_codes, Previous: cpg-ref-SP_put_bytes, Up: cpg-bif [Contents][Index]
SP_put_code()
#include <sicstus/sicstus.h> spio_t_error_code SP_put_code( SP_stream *stream, int item);
Write a character code to a text stream.
The stream. Must be a text stream open for output.
On success, the written character will be returned, cast to a
spio_t_error_code
. The value returned on successful return will
never be negative.
On failure, returns an error code, recognizable with
SPIO_FAILED()
. Error codes are always negative.
Note that SP_put_code()
is implemented as a macro and may evaluate
the arguments more than once. For the same reason, no error checking
is performed on the arguments.
cpg-ref-SP_put_byte. Prolog Streams.