put_char/[1,2]

Module: sio

put_char/1 — output a character to the current output stream
put_char/2 — output a character to a specific output stream

ISO Standard Predicate

FORMS

put_char(Char)

put_char(Stream_or_Alias, Char)

DESCRIPTION

put_char/1 will write out the character bound to Char to the current output stream.

put_char/2 will write out the character bound to Char to the output stream associated with Stream_or_Alias.

EXAMPLES

?- put_char('\t'),put_char(h),put_char(o),
   put_char(w),put_char(d),put_char(y),nl.
	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) .

Char is a variable

– – – – > instantiation_error.

Char is neither a variable nor a character

– – – – > type_error(character, Char) .

SEE ALSO