Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

streamp

streamp

type: predicate function (subr)
location: built-in
source file: xlbfun.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(streamp <expr> )
        <expr>          -       the expression to check

DESCRIPTION

The STREAMP predicate checks if an <expr> is a stream. T is returned if <expr> is a stream, NIL is returned otherwise.

EXAMPLES

(streamp *standard-input*)              ; returns T - stream
(streamp *debug-io*)                    ; returns T - stream
(streamp (make-string-output-stream))   ; returns T - stream
(setq a *standard-output*)              ;
(streamp a)                             ; returns T - evaluates to stream
                                        ;
(streamp "a")                           ; returns NIL - string
(streamp #\a)                           ; returns NIL - character
(streamp '(a b c))                      ; returns NIL - list
(streamp 1)                             ; returns NIL - integer
(streamp 1.2)                           ; returns NIL - float
(streamp '*debug-io*)                   ; returns NIL - symbol
(streamp 'a)                            ; returns NIL - symbol
(streamp #(0 1 2))                      ; returns NIL - array 
(streamp NIL)                           ; returns NIL - NIL


Go to the first, previous, next, last section, table of contents.