1014
Appendix A: System Routines — Symbol Table Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
FolderCount
Declaration:
WORD
FolderCount
(const SYM_ENTRY *
SymPtr
)
Category(ies):
Symbol Table Utilities (low-level)
Description:
Return number of used entries in a folder.
Inputs:
SymPtr
— SYM_ENTRY pointer to a folder.
Outputs:
Number of used symbol table entries in that folder.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: DerefSym, FolderFind, SymFindHome
Example:
void DISP( char *str, WORD v ) {
char buf[255];
sprintf(buf, str, v );
DlgNotice( NULL, buf );
}
BYTE mainFold[] = {0,'m','a','i','n',0};
HSYM hsym;
/* All folders, including main, are in the HOME folder. MAIN can never be deleted so
hsym will never be NULL in this example.
*/
if (hsym = SymFindHome( mainFold+5 ))
DISP( "%d symbols in main", FolderCount( DerefSym( hsym ) ) );