getchar
getchar(S_argx_index) =>s_char/nil
Description
Returns an indexed character of a string or the print name if the string is a symbol. Unlike the C library, the getc and getchar SKILL functions are totally unrelated.
Arguments
Value Returned
|
Single character symbol corresponding to the character in S_arg indexed by x_index. |
|
|
If x_index is less than 1 or greater than the length of the string. |
Examples
getchar("abc" 2)
=> b
getchar("abc" 4)
=> nil
Related Topics
Return to top