char
type: function (subr) location: built-in source file: xlstr.c Common LISP compatible: yes supported on: all machines
SYNTAX
(char <string> <position> )
<string> - a string expression
<position> - an integer expression
DESCRIPTION
The CHAR function returns the ASCII numeric value of the character at the specified <position> in the <string>. A <position> of 0 is the first character in the string.
EXAMPLES
(char "12345" 0) ; returns #\1 (char "12 45" 2) ; returns #\Space (string (char "1234" 3)) ; returns "4" (char "1234" 9) ; error: index out of range