(vl-string-position charactercode string [startpos [fromendpos]])
Search for a character in a string given an ASCII code.
This function returns the position where the ASCII code was matched in the string or nil if a match is not found. The first character is position zero.
Example
Code | Returns |
---|---|
(vl-string-position (ascii "t" "MyText") | 2 |
Tell me about...
Programming Overview of LISP (LISt Processing) Language