#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.585 2006/06/12 17:53:11 cph Exp $
+$Id: runtime.pkg,v 14.586 2006/06/21 03:00:05 cph Exp $
Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
(files "strnin")
(parent (runtime))
(export ()
+ call-with-input-string
open-input-string
(string->input-port open-input-string)
with-input-from-string)
#| -*-Scheme-*-
-$Id: strnin.scm,v 14.17 2005/12/20 15:53:04 cph Exp $
+$Id: strnin.scm,v 14.18 2006/06/21 03:00:11 cph Exp $
Copyright 1988,1990,1993,1999,2003,2004 Massachusetts Institute of Technology
-Copyright 2005 Massachusetts Institute of Technology
+Copyright 2005,2006 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
'ISO-8859-1
'NEWLINE))))
+(define (call-with-input-string string procedure)
+ (let ((port (open-input-string string)))
+ (let ((value (procedure port)))
+ (close-input-port port)
+ value)))
+
(define (make-string-source string start end)
(let ((index start))
(make-non-channel-source