Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.

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


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