Node:Closing, Next:Random Access, Previous:Writing, Up:Input and Output
close-port port | Scheme Procedure |
scm_close_port (port) | C Function |
Close the specified port object. Return #t if it
successfully closes a port or #f if it was already
closed. An exception may be raised if an error occurs, for
example when flushing buffered output. See also close, for a procedure which can close file
descriptors.
|
close-input-port port | Scheme Procedure |
scm_close_input_port (port) | C Function |
Close the specified input port object. The routine has no effect if
the file has already been closed. An exception may be raised if an
error occurs. The value returned is unspecified.
See also close, for a procedure which can close file descriptors. |
close-output-port port | Scheme Procedure |
scm_close_output_port (port) | C Function |
Close the specified output port object. The routine has no effect if
the file has already been closed. An exception may be raised if an
error occurs. The value returned is unspecified.
See also close, for a procedure which can close file descriptors. |
port-closed? port | Scheme Procedure |
scm_port_closed_p (port) | C Function |
Return #t if port is closed or #f if it is
open.
|