Debian Codegraph @

info/gcl/input_002dstream_002dp.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>input-stream-p (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="input-stream-p (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="input-stream-p (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="interactive_002dstream_002dp.html" rel="next" title="interactive-stream-p">
16 <link href="two_002dway_002dstream.html" rel="prev" title="two-way-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="input_002dstream_002dp"></span><div class="header">
41 <p>
42 Next: <a href="interactive_002dstream_002dp.html" accesskey="n" rel="next">interactive-stream-p</a>, Previous: <a href="two_002dway_002dstream.html" accesskey="p" rel="prev">two-way-stream</a>, Up: <a href="Streams-Dictionary.html" accesskey="u" rel="up">Streams Dictionary</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="input_002dstream_002dp_002c-output_002dstream_002dp-_005bFunction_005d"></span><h4 class="subsection">21.2.9 input-stream-p, output-stream-p [Function]</h4>
46
47 <p><code>input-stream-p</code> <i>stream</i> &rArr; <i>generalized-boolean</i>
48 </p>
49 <p><code>output-stream-p</code> <i>stream</i> &rArr; <i>generalized-boolean</i>
50 </p>
51 <span id="Arguments-and-Values_003a_003a-412"></span><h4 class="subsubheading">Arguments and Values::</h4>
52
53 <p><i>stream</i>&mdash;a <i>stream</i>.
54 </p>
55 <p><i>generalized-boolean</i>&mdash;a <i>generalized boolean</i>.
56 </p>
57 <span id="Description_003a_003a-540"></span><h4 class="subsubheading">Description::</h4>
58
59 <p><b>input-stream-p</b> returns <i>true</i> if <i>stream</i> is an <i>input</i> <i>stream</i>;
60 otherwise, returns <i>false</i>.
61 </p>
62 <p><b>output-stream-p</b> returns <i>true</i> if <i>stream</i> is an <i>output</i> <i>stream</i>;
63 otherwise, returns <i>false</i>.
64 </p>
65 <span id="Examples_003a_003a-387"></span><h4 class="subsubheading">Examples::</h4>
66
67 <div class="example">
68 <pre class="example"> (input-stream-p *standard-input*) &rArr; <i>true</i>
69 (input-stream-p *terminal-io*) &rArr; <i>true</i>
70 (input-stream-p (make-string-output-stream)) &rArr; <i>false</i>
71
72 (output-stream-p *standard-output*) &rArr; <i>true</i>
73 (output-stream-p *terminal-io*) &rArr; <i>true</i>
74 (output-stream-p (make-string-input-stream &quot;jr&quot;)) &rArr; <i>false</i>
75 </pre></div>
76
77 <span id="Exceptional-Situations_003a_003a-192"></span><h4 class="subsubheading">Exceptional Situations::</h4>
78
79 <p>Should signal an error of <i>type</i> <b>type-error</b>
80 if <i>stream</i> is not a <i>stream</i>.
81 </p>
82
83
84
85 </body>
86 </html>