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.

string

string

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

SYNTAX

(string <expr> )
        <expr>          -       a string, symbol or character expression

DESCRIPTION

The STRING function forces the <expr> to be a string. If the <expr> is a string, it is returned, as is. If the <expr> is a character, a one-character string is returned. If the <expr> is a symbol, the symbol is turned into a string.

EXAMPLES

(string 'foo)                           ; returns "FOO"
(string 'x)                             ; returns "X"
(string "abcdef")                       ; returns "abcdef"      
(string #\a)                            ; returns "a"
(string #\A)                            ; returns "A"
(string #\Newline)                      ; returns "\n"


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