Previous: , Up: Port Types   [Contents][Index]


6.14.10.6 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.