 |
EX_getArg |
Function (ROM Call 0xBE) |
Returns a pointer to the nth argument.
EX_getArg is TIOS function which may be useful if you want to access arguments in
non_sequential order. EX_getArg returns a pointer to the argument which ordinal
number is n (which may be later processed using GetIntArg
etc.). Arguments are numbered from zero (i.e. 0, 1, 2, ... N-1
where N is the total number of arguments). Note that when n = N,
EX_getArg returns NULL, and when n > N,
EX_getArg throws an error, so it is good idea to check in advance the total number
of arguments using ArgCount.
Uses: next_expression_index, top_estack
Used by: EX_getBCD