eVarId_t eAddVar

(eVariables_t* v, const char* name, double val)

Create a new variable.

Documentation

Creates a new variable in structure v of name name and initial value val. Names are case-sensitive.

The function does NOT check if the name of newly added variable has already been taken.

Returns:
ID value of the newly created variable on success or -1 on failure.
See Also:
eAddVarSort(), eGetVarId(), eGetVarName(), eGetVarPtr(), eSetVar(), eGetVar(), eIsVarName()

Alphabetic index


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