Next: mpg-ref-at_end_of_stream, Previous: mpg-ref-assertz, Up: mpg-bpr [Contents][Index]
at_end_of_line/[0,1]
at_end_of_line
at_end_of_line(+Stream)
Test whether end of line has been reached for the current input stream or for the input stream Stream.
stream_object, must be ground
A valid Prolog input stream, defaults to the current input stream.
Succeeds when end of line is reached for the specified input stream. An input stream reaches end of line when all the characters except LFD of the current line have been read, or when the end of the stream has been reached (or passed). This predicate will peek ahead to determine the result, and will block if necessary until a character becomes available.
Stream errors (see ref-iou-sfh-est).
at_end_of_stream/[0,1]
, skip_line/[0,1]
,
set_input/1
.