Documentation Prolog Predicate Reference builtin peek_char/2

peek_char/2

Read character from input stream without removing it.

Description

peek_char( +stream, -character )

peek_char(Stream, Char) reads the next character from the input stream Stream without removing it nor modifying the stream's position or the end-of-file status and unifies it with Char.

Implementation