get_key_ptr Function (ROM Call 0x2B7)

AMS 1.01 or higher estack.h

char *get_key_ptr (ESQ Tag1, ESQ Tag2);

Converts a tag code to a tag name.

get_key_ptr returns a static pointer to the string which represents the name of the tag Tag1. Tag2 is used only if Tag1 is an extended tag (i.e. EXT_TAG, EXT_INSTR_TAG or EXT_SYSTEM_TAG) which can't be fully represented using only one byte.

If the tag corresponds to a function, AMS 1.xx does not append '(' at the end of the string, but AMS 2.xx does. Thus, anyone who intends to use this function for function tokens should use extra code to handle both cases.


Uses: XR_stringPtr
Used by: index_below_display_expression_aux, push_part