- copy-port FROM TO #!optional READ WRITEprocedure
Reads all remaining data from port FROM using the reader procedure READ and writes it to port TO using the writer procedure WRITE. READ defaults to read-char and WRITE to write-char. Note that this procedure does not check FROM and TO for being ports, so the reader and writer procedures may perform arbitrary operations as long as they can be invoked as (READ FROM) and (WRITE X TO), respectively. copy-port returns an undefined value.
copy-port was introduced in CHICKEN 4.6.0.