eValue_t* eGetVarPtr

(eVariables_t v,
  eVarId_t id)

Get pointer to a variable.


Provides a pointer to a variable id in v. The pointer may be used to manipulate the value of the variable.

Usage of eSetVar() is recommended as it is The Right Thing(tm), but direct access doesn't involve calling a function.

A pointer to eValue_t field of the variable or NULL on failure (eg. id out of range).
See Also:
eAddVar(), eGetVarId(), eGetVarName(), eSetVar(), eGetVar(), eIsVarName()

Alphabetic index

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