Appendix A: System Routines — Data Utilities
341
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
QSysProtected
Declaration:
BOOL
QSysProtected
(BYTE
Tag
)
Category(ies):
Data Utilities
Description:
Return TRUE if the given
Tag
is for a system protected data type.
Inputs:
Tag
— Tag byte.
Outputs:
TRUE if
Tag
is that for a function, program, data-var, graph database,
picture, text, assembly language program, or third-party data tag (which
includes files).
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: GetDataType
Example:
/* Given a pointer to a variable name (CAS format, points to zero byte
terminator), return TRUE if O.K. to write to it
*/
getVarType( BYTE *varNamePtr ) {
HSYM hsym;
SYM_ENTRY *SymPtr;
if (hsym = VarRecall( varNamePtr, 0)) {
SymPtr = DerefSym( hsym );
return( !QSysProtected( * HToESI(SymPtr->hVal) ));
} else
return TRUE;
}