580
Appendix A: System Routines — Files
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
TokenizeName
(continued)
Example:
There is an example routine, TokenizeFoldName, in the
FolderCur
description that will work for tokenizing folder names.
/* This piece of code tokenizes a symbol name stored in VarNameBuf (throwing an
error if it was invalid) and then calls VarStore to store the value on top
of the estack to this variable.
*/
if (FS_OK != TokenizeName(&VarNameBuf, tokPath))
ER_throw( EXPECTED_VAR_OR_FUNC_ERROR ); /* Invalid name */
VarStore(TokNameRight(tokPath), STOF_ESI, 0, (long) top_estack);