NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
byte StrIndex ( string  str,
unsigned int  idx 
)
inline

Extract a character from a string.

Return the numeric value of the character in the specified string at the specified index. The input string parameter may be a variable, constant, or expression.

Parameters
strA string.
idxThe index of the character to retrieve.
Returns
The numeric value of the character at the specified index.
Examples:
ex_StrIndex.nxc, and ex_string.nxc.