make-string-output-stream
make-string-output-stream &key element-type β string-stream
element-typeβa type specifier. The default is character.
string-streamβan output string stream.
21.2.0 9Returns an output string stream that accepts characters and makes available (via get-output-stream-string) a string that contains the characters that were actually output.
The element-type names the type of the elements of the string; a string is constructed of the most specialized type that can accommodate elements of that element-type.
(let ((s (make-string-output-stream))) (write-string "testing... " s) (prin1 1234 s) (get-output-stream-string s)) β "testing... 1234"
None.
None.
get-output-stream-string, with-output-to-string
None.