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.

stringp

stringp

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

SYNTAX

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

DESCRIPTION

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

EXAMPLES

(stringp "a")                           ; returns T - string
(setq a "hi there"                      ; 
(stringp a)                             ; returns T - evaluates to string
                                        ;
(stringp #\a)                           ; returns NIL - character
(stringp '(a b c))                      ; returns NIL - list
(stringp 1)                             ; returns NIL - integer
(stringp 1.2)                           ; returns NIL - float
(stringp 'a)                            ; returns NIL - symbol
(stringp #(0 1 2))                      ; returns NIL - array 
(stringp NIL)                           ; returns NIL - NIL


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