read-char

Name

read-char -- Read a character

Type: function

Synopsis

read-char(, char);

Arguments

input-port

An instance of <input-port>. Default is the current input port.

Return Values

char

A character object or the EOF object if the input port is at end of file.

Description

This function reads one character from the input port given, or from the current input port if no argument is given. It return the character read as an RScheme ascii character object. If there are no more characters to read from the port then the EOF object is returned (the only one for which eof-object? return #t).