vl-string-elt

(vl-string-elt string position)

The vl-string-elt function returns an ASCII code of a character in a specified string at a specified position.

Arguments

string specifies the text string to analyze.

position specifies the position as an integer (the first character is specified by 0).

Return Value

The function returns the ASCII code as integer value.

Examples

: (vl-string-elt "London" 0)

76

: (vl-string-elt "London" 1)

111

: (vl-string-elt "Paris" 4)

115

: (vl-string-elt "Paris" 5)

0