peek_char/[1,2]

Module: sio

peek_char/[1,2] — obtain char from stream

ISO Standard Predicate

FORMS

peek_char(Char)

peek_char(Stream_or_alias, Char)

DESCRIPTION

peek_char(Char) unifies Char with the next character obtained from the default input stream. However, the character is not consumed from the stream.

peek_char(Alias_or_Stream, Char) unifies Char with the next character obtained from the stream associated with Stream_or_alias. However, the character is not consumed from the stream.