Debian Codegraph @

info/gcl/make_002decho_002dstream.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>make-echo-stream (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="make-echo-stream (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="make-echo-stream (ANSI and GNU Common Lisp Document)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="Streams-Dictionary.html" rel="up" title="Streams Dictionary">
15 <link href="concatenated_002dstream_002dstreams.html" rel="next" title="concatenated-stream-streams">
16 <link href="echo_002dstream_002dinput_002dstream.html" rel="prev" title="echo-stream-input-stream">
17 <style type="text/css">
18 <!--
19 a.summary-letter {text-decoration: none}
20 blockquote.indentedblock {margin-right: 0em}
21 div.display {margin-left: 3.2em}
22 div.example {margin-left: 3.2em}
23 div.lisp {margin-left: 3.2em}
24 kbd {font-style: oblique}
25 pre.display {font-family: inherit}
26 pre.format {font-family: inherit}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 span.nolinebreak {white-space: nowrap}
30 span.roman {font-family: initial; font-weight: normal}
31 span.sansserif {font-family: sans-serif; font-weight: normal}
32 ul.no-bullet {list-style: none}
33 -->
34 </style>
35
36
37 </head>
38
39 <body lang="en">
40 <span id="make_002decho_002dstream"></span><div class="header">
41 <p>
42 Next: <a href="concatenated_002dstream_002dstreams.html" accesskey="n" rel="next">concatenated-stream-streams</a>, Previous: <a href="echo_002dstream_002dinput_002dstream.html" accesskey="p" rel="prev">echo-stream-input-stream</a>, Up: <a href="Streams-Dictionary.html" accesskey="u" rel="up">Streams Dictionary</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="make_002decho_002dstream-_005bFunction_005d"></span><h4 class="subsection">21.2.45 make-echo-stream [Function]</h4>
46
47 <p><code>make-echo-stream</code> <i>input-stream output-stream</i> &rArr; <i>echo-stream</i>
48 </p>
49 <span id="Arguments-and-Values_003a_003a-446"></span><h4 class="subsubheading">Arguments and Values::</h4>
50
51 <p><i>input-stream</i>&mdash;an <i>input</i> <i>stream</i>.
52 </p>
53 <p><i>output-stream</i>&mdash;an <i>output</i> <i>stream</i>.
54 </p>
55 <p><i>echo-stream</i>&mdash;an <i>echo stream</i>.
56 </p>
57 <span id="Description_003a_003a-576"></span><h4 class="subsubheading">Description::</h4>
58
59 <p>Creates and returns an <i>echo stream</i>
60 that takes input from <i>input-stream</i>
61 and sends output to <i>output-stream</i>.
62 </p>
63 <span id="Examples_003a_003a-418"></span><h4 class="subsubheading">Examples::</h4>
64 <div class="example">
65 <pre class="example"> (let ((out (make-string-output-stream)))
66 (with-open-stream
67 (s (make-echo-stream
68 (make-string-input-stream &quot;this-is-read-and-echoed&quot;)
69 out))
70 (read s)
71 (format s &quot; * this-is-direct-output&quot;)
72 (get-output-stream-string out)))
73 &rArr; &quot;this-is-read-and-echoed * this-is-direct-output&quot;
74 </pre></div>
75
76 <span id="See-Also_003a_003a-468"></span><h4 class="subsubheading">See Also::</h4>
77
78 <p><a href="echo_002dstream_002dinput_002dstream.html">echo-stream-input-stream</a>
79 ,
80 <b>echo-stream-output-stream</b>,
81 <a href="make_002dtwo_002dway_002dstream.html">make-two-way-stream</a>
82 </p>
83
84
85
86 </body>
87 </html>