Arc Cross Reference


[procedure] readc port

[procedure] readb port

[procedure] peekc port

Read a character or a byte from an input port port. peekc does't advance the input position. If nil is passed to port, the current stdin is used. (which is different from scheme:read-char, scheme:read-byte and scheme:peek-char, in which omitting the port means current input port.)

If the input port has reached at its end, nil is returned. (No eof-object equivalent).

See also: sread, writec, writeb, write