XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

char-int


Type:   -   function (subr)
Source:   -   xlstr.c

Syntax

(char-int char)
char - a character expression
returns - the decimal ASCII value as an integer

Description

The 'char-int' function returns the decimal 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.

See the char-int function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next