PutChar2

Implements ISO's put_char/2: writes the one-character atom second argument to the output stream identified by the first (an alias or $stream(...) term).

Throws

if the first argument does not identify an open channel.

(stream_type) if it identifies an input channel instead.

(character) if the second argument is bound but not a one-character atom.

Fails, rather than erroring, if the channel is closed.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard