Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

get-output-stream-list

get-output-stream-list

type: function (subr) 
location: built-in
source file: xlfio.c
Common LISP compatible: no
supported on: all machines

SYNTAX

(get-output-stream-list <source> )
        <source>        -       an output stream expression

DESCRIPTION

The GET-OUTPUT-STREAM-LIST function empties the specified <source> and returns this data as a list. The output stream is emptied by this operation.

EXAMPLES

(setq out (make-string-output-stream))  ; returns #<Unnamed-Stream: #2d2cc>
(format out "123")                      ; add some data to output stream
(get-output-stream-list out)            ; returns (#\1 #\2 #\3)
(format out "123")                      ; add some data to output stream
(read out)                              ; returns 123
(get-output-stream-list out)            ; returns NIL


Go to the first, previous, next, last section, table of contents.