The 'char-code' function returns the decimal ASCII value of the 'char' expression.
(char-code #\0) ; returns 48 (char-code #\A) ; returns 65 (char-code #\a) ; returns 97 (char-code #\[) ; returns 91 (char-code #\newline) ; returns 10 (char-code (code-char 127)) ; returns 127 (char-code (int-char 255)) ; returns 255
Common Lisp: Common Lisp supports the concept of a complex
character that includes not only the ASCII code value, but also fonts and
bits. The bits allow for more than
Note: Because XLISP does not support fonts and bits [as discussed above], 'char-code' and char-int are identical in use.
See the
char-code
function in the