All Manuals > LispWorks® User Guide and Reference Manual > 46 The STREAM Package

stream-read-char-no-hang Generic Function

Summary

Returns either a character from the stream, :eof if the end-of-file is reached, or nil if no input is currently available.

Package

stream

Signature

stream-read-char-no-hang stream => result

Arguments
stream
An input stream.
Values
result
Either a character, :eof or nil.
Description

The generic function stream-read-char-no-hang implements read-char-no-hang. It returns either a character read from the stream, or:eof if end-of-file is reached, or nil if no input is available. The default method specializes stream on fundamental-character-input-stream and simply calls stream-read-char which is sufficient for file streams, but interactive streams should define their own method.

See also

fundamental-character-input-stream
stream-read-char


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:01