Documentation Prolog Predicate Reference builtin peek_code/2

peek_code/2

Read character code from input stream without removing it.

Description

peek_code( +stream, -character_code )

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

Implementation