peek-char

[procedure] peek-char [port]

R5RS: Returns the next character available from the input port, without updating the port to point to the following character. If no more characters are available, an end of file object is returned. Port may be omitted, in which case it defaults to the value returned by current-input-port.

See also read-char, eof-object?, current-input-port.