![[LISPWORKS]](/image.pl?url=http%3a%2f%2fwww.lispworks.com%2fdocumentation%2fHyperSpec%2fBody%2f..%2fGraphics%2fLWSmall.gif&f=jpg&w=240)
![[Common Lisp HyperSpec (TM)]](/image.pl?url=http%3a%2f%2fwww.lispworks.com%2fdocumentation%2fHyperSpec%2fBody%2f..%2fGraphics%2fCLHS_Sm.gif&f=jpg&w=240)
Syntax:
input-stream-pstream =>generalized-boolean
output-stream-pstream =>generalized-boolean
Arguments and Values:
stream---astream.
generalized-boolean---ageneralized boolean.
Description:
input-stream-p returnstrue ifstream is aninputstream; otherwise, returnsfalse.
output-stream-p returnstrue ifstream is anoutputstream; otherwise, returnsfalse.
Examples:
(input-stream-p *standard-input*) =>true (input-stream-p *terminal-io*) =>true (input-stream-p (make-string-output-stream)) =>false (output-stream-p *standard-output*) =>true (output-stream-p *terminal-io*) =>true (output-stream-p (make-string-input-stream "jr")) =>false
Side Effects: None.
Affected By: None.
Exceptional Situations:
Should signal an error oftypetype-error ifstream is not astream.
See Also: None.
Notes: None.