User Tools


Function MAKE-STRING-OUTPUT-STREAM

Syntax

  • make-string-output-stream &key element-typestring-stream

Arguments and Values

Description

Returns 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.

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

Notes

None.

\issue{CHARACTER-PROPOSAL:2-5-6} \issue{STREAM-ACCESS:ADD-TYPES-ACCESSORS} \issue{CHARACTER-PROPOSAL:2-5-6}