11.3.94 get_code/[1,2] [ISO]

Synopsis

get_code(-Code)

get_code(+Stream, -Code)

Unifies Code with the next code from Stream or with -1 if there are no more characters.

Arguments

Stream
stream_object, must be ground

Valid input text stream, defaults to the current input stream.

Code
code or -1

Exceptions

Stream errors (see ref-iou-sfh-est), plus:

existence_error
Trying to read beyond end of Stream

See Also

ref-iou-cin.


Send feedback on this subject.