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.

char-int

char-int

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

SYNTAX

(char-int <char> )
        <char>          -       a character expression

DESCRIPTION

The CHAR-INT function returns the ASCII value of the <char> expression.

EXAMPLES

(char-int #\0)                          ; returns 48
(char-int #\A)                          ; returns 65
(char-int #\a)                          ; returns 97
(char-int #\[)                          ; returns 91
(char-int #\newline)                    ; returns 10
(char-int (code-char 127))              ; returns 127
(char-int (int-char 255))               ; returns 255

NOTE: CHAR-CODE and CHAR-INT are identical in use. See CHAR-CODE for additional information.


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