Previous: Soft Ports, Up: Port Types


5.12.9.4 Void Ports

This kind of port causes any data to be discarded when written to, and always returns the end-of-file object when read from.

— Scheme Procedure: %make-void-port mode
— C Function: scm_sys_make_void_port (mode)

Create and return a new void port. A void port acts like /dev/null. The mode argument specifies the input/output modes for this port: see the documentation for open-file in File Ports.