Documentation Prolog Predicate Reference builtin get_code/1

get_code/1

Get character code from current input stream.

Description

get_code( -character_code )

get_code(Code) read the current input stream and unifies Code with the character code of the next read character. On end-of-file, Code is bound to -1

Implementation