Ex_Getarg - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

1102

EX_getArg

Declaration:
EStackIndex EX_getArg (USHORT j )
Category(ies):
Utilities
Description:
Retrieves a pointer to the jth argument of an ASM program.
ASM programs can be called with arguments from TI-BASIC programs and
from the Home screen author line. The arguments are evaluated and
pushed on the estack from left to right. The left-most argument is deepest
on the estack when the ASM program is called.
Inputs:
j
Outputs:
Returns pointer to jth argument on the estack or NULL if j is past end of
argument list.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
next_expression_index
Example:
EStackIndex e;
USHORT j;
.
.
.
/* Process each arg until NULL arg encountered */
for (j = 0; (e = EX_getArg(j)) != NULL; j += 1)
{
processArg(e);
}
TI-89 / TI-92 Plus Developer Guide
— Argument number to retrieve. 0 retrieves the right-most argument.
Not for Distribution
Appendix A: System Routines — Utilities
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents