User Tools


Function MAKE-STRING-INPUT-STREAM

Syntax

  • make-string-input-stream string &optional start endstring-stream

Arguments and Values

Description

Returns an input string stream. This stream will supply, in order, the characters in the substring of string bounded by start and end. After the last character has been supplied, the string stream will then be at end of file.

Examples

(let ((string-stream (make-string-input-stream "1 one "))) (list (read string-stream nil nil) (read string-stream nil nil) (read string-stream nil nil)))

(1 ONE NIL)

(read (make-string-input-stream "prefixtargetsuffix" 6 12))

TARGET

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

Notes

None.

\issue{RANGE-OF-START-AND-END-PARAMETERS:INTEGER-AND-INTEGER-NIL} \issue{STREAM-ACCESS:ADD-TYPES-ACCESSORS}