Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How I can determine the size of a symbol (i.e. TI-Basic variable) and the TIOS type of the variable?

0
Posted

How I can determine the size of a symbol (i.e. TI-Basic variable) and the TIOS type of the variable?

0

Assume that you found a VAT symbol entry for a symbol (say symbol named “foo”) which may be done for example using SymFindPtr: SYM_ENTRY *sym; … sym = SymFindPtr (SYMSTR (“foo”), 0); Then, do the following to find the size and type: unsigned short size; ESQ type; … size = ((MULTI_EXPR*) HeapDeref (sym->handle))->Size + 2; type = *(HToESI (sym->handle)); After this, the variables ‘size’ and ‘type’ will contain exactly what do you want.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123