GNU Info

Info Node: (slib.info)String Ports

(slib.info)String Ports


Next: Line I/O Prev: String-Case Up: Procedures
Enter node , (file) or (file)node

String Ports
------------

  `(require 'string-port)'

 - Procedure: call-with-output-string proc
     PROC must be a procedure of one argument.  This procedure calls
     PROC with one argument: a (newly created) output port.  When the
     function returns, the string composed of the characters written
     into the port is returned.

 - Procedure: call-with-input-string string proc
     PROC must be a procedure of one argument.  This procedure calls
     PROC with one argument: an (newly created) input port from which
     STRING's contents may be read.  When PROC returns, the port is
     closed and the value yielded by the procedure PROC is returned.


automatically generated by info2www version 1.2.2.9