Node:Void Ports, Previous:Soft Ports, Up:Port Types



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

%make-void-port mode Scheme Procedure
scm_sys_make_void_port (mode) C Function
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.