char* eGetVarName

(eVariables_t v, eVarId_t id)

Get name of a variable by its ID.


Gets name of a variable in v that has ID number of id. The function allocates memory with a malloc() call, so the memory should be free()'d when the name is no longer needed.
A pointer to dynamically allocated memory storing name of the variable, NULL on failure (eg. id out of range).
See Also:
eAddVar(), eGetVarId(), eGetVarPtr(), eSetVar(), eGetVar(), eIsVarName()

Alphabetic index

libsexpr - a simple library for parsing arithmetic expressions
© 2003 by Marcin Simonides