| 1 |
<html><head><title>XLISP get-output-stream-list</title> |
| 2 |
|
| 3 |
<link rel="stylesheet" type="text/css" href="reference.css"> |
| 4 |
|
| 5 |
</head> |
| 6 |
|
| 7 |
<body> |
| 8 |
|
| 9 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 10 |
<a href="../manual/contents.htm">Contents</a> | |
| 11 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 12 |
<a href="../examples/examples.htm">Examples</a> | |
| 13 |
<a href="reference-index.htm">Reference</a> |
| 14 |
|
| 15 |
<hr> |
| 16 |
|
| 17 |
<h1>get-output-stream-list</h1> |
| 18 |
|
| 19 |
<hr> |
| 20 |
|
| 21 |
<p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody> |
| 22 |
<tr valign="top"> |
| 23 |
<td><nobr>Type:</nobr></td> |
| 24 |
<td><nobr> - </nobr></td> |
| 25 |
<td width="100%"><nobr>function (subr)</nobr></td> |
| 26 |
</tr> |
| 27 |
<tr valign="top"> |
| 28 |
<td><nobr>Source:</nobr></td> |
| 29 |
<td><nobr> - </nobr></td> |
| 30 |
<td width="100%"><nobr>xlfio.c</nobr></td> |
| 31 |
</tr> |
| 32 |
</tbody></table></p> |
| 33 |
|
| 34 |
<h2>Syntax</h2> |
| 35 |
|
| 36 |
<dl> |
| 37 |
<dt>(get-output-stream-list <i>stream</i>)</dt> |
| 38 |
<dd><i>stream</i> - an output stream expression<br> |
| 39 |
returns - the output so far as a list</dd> |
| 40 |
</dl> |
| 41 |
|
| 42 |
<h2>Description</h2> |
| 43 |
|
| 44 |
<p>The 'get-output-stream-list' function empties the specified 'stream' and |
| 45 |
returns this data as a list. The output stream is emptied by this |
| 46 |
operation.</p> |
| 47 |
|
| 48 |
<h2>Examples</h2> |
| 49 |
|
| 50 |
<pre class="example"> |
| 51 |
(setq out (make-string-output-stream)) <font color="#008844">; returns #<Unnamed-Stream: #...></font> |
| 52 |
|
| 53 |
(format out "123") <font color="#008844">; add some data to output stream</font> |
| 54 |
(get-output-stream-list out) <font color="#008844">; returns (#\1 #\2 #\3)</font> |
| 55 |
|
| 56 |
(format out "123") <font color="#008844">; add some data to output stream</font> |
| 57 |
(read out) <font color="#008844">; returns 123</font> |
| 58 |
(get-output-stream-list out) <font color="#008844">; returns NIL, the string was emptied by 'read'</font> |
| 59 |
</pre> |
| 60 |
|
| 61 |
<p>See the |
| 62 |
<a href="../manual/xlisp-man-030.htm#get-output-stream-list">get-output-stream-list</a> |
| 63 |
function in the <nobr>XLISP 2.0</nobr> manual.</p> |
| 64 |
|
| 65 |
<p><nobr> <a href="#top">Back to Top</nobr></a></p> |
| 66 |
|
| 67 |
<hr> |
| 68 |
|
| 69 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 70 |
<a href="../manual/contents.htm">Contents</a> | |
| 71 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 72 |
<a href="../examples/examples.htm">Examples</a> | |
| 73 |
<a href="reference-index.htm">Reference</a> |
| 74 |
|
| 75 |
</body></html> |