put_code/[1,2]
Module: sio
put_code/1 — output a character code to the current output stream
put_code/2 — output a character code to a specific output stream
FORMS
put_code(Char)
put_code(Stream_or_Alias, Code)
DESCRIPTION
put_code/1 will write out the character code bound to Char to the current output stream.
put_code/2 will write out the character code bound to Char to the output stream associated with Stream_or_Alias.
EXAMPLES
?- put_code(0'\t),put_code(0'h),put_code(0'o),put_code(0'w),
put_code(0'd),put_code(0'y),put_code(0'\n).
howdy
yes.
ERRORS
Stream_or_Alias is a variable
– – – – > instantiation_error.
Stream_or_Alias is neither a variable nor a stream descriptor nor an alias
– – – – > domain_error(stream_or_alias, Stream_or_Alias) .
Stream_or_Alias is not associated with an open stream
– – – – > existence_error(stream, Stream_or_Alias) .
Stream_or_Alias is not an output stream
– – – – > permission_error(output, stream, Stream_or_Alias) .
Code is a variable
– – – – > instantiation_error.
Code is neither a variable nor a character
– – – – > type_error(character, Code) .