![[LISPWORKS]](/image.pl?url=http%3a%2f%2fwww.lispworks.com%2fdocumentation%2fHyperSpec%2fBody%2f..%2fGraphics%2fLWSmall.gif&f=jpg&w=240)
![[Common Lisp HyperSpec (TM)]](/image.pl?url=http%3a%2f%2fwww.lispworks.com%2fdocumentation%2fHyperSpec%2fBody%2f..%2fGraphics%2fCLHS_Sm.gif&f=jpg&w=240)
Syntax:
make-string-output-stream&key element-type =>string-stream
Arguments and Values:
element-type---atype specifier. The default ischaracter.
string-stream---anoutputstring stream.
Description:
Returns anoutputstring stream that acceptscharacters and makes available (viaget-output-stream-string) astring that contains thecharacters that were actually output.
Theelement-type names thetype of theelements of thestring; astring is constructed of the most specializedtype that can accommodateelements of thatelement-type.
Examples:
(let ((s (make-string-output-stream))) (write-string "testing... " s) (prin1 1234 s) (get-output-stream-string s))=> "testing... 1234"
Affected By: None.
Exceptional Situations: None.
See Also:
get-output-stream-string,with-output-to-string
Notes: None.