Appendix A: System Routines — Token Operations
1087
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
GetTagStr
Declaration:
char *
GetTagStr
(EStackIndex
tagPtr
, char *
Buf
)
Category(ies):
Token Operations, Strings
Description:
Return a pointer to the string which defines a tag.
Inputs:
tagPtr
— Pointer to tag to decode.
Buf
— Buffer of at least 11 bytes long.
Outputs:
Returns
Buf
.
Assumptions:
Buf
must be at least 11 bytes long.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
The
ShowStat
command prints the string name for each statistical variable
it finds using
GetTagStr
to print the name of the variable as shown in this
example.
BYTE Tag[2];
char Buf[24];
char kwBuf[SYM_LEN+2];
Tag[0] = Index; /* SV_XBAR .. SV_MEDY */
Tag[1] = SYSVAR_TAG;
sprintf( Buf, "%-7s", GetTagStr( Tag+1, kwBuf ) );