eVarId_t eAddVarSort

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

Create a new variable, variables are sorted asciibetically.


Inserts a new variable into structure v of name name and initial value val so that the variables are sorted by name in ascending order. Names are case-sensitive.

This eAddVar() and eAddVarSort() cannot be mixed (or the variables will be in a strange order). The function does NOT check if name of newly created variable has already been taken.

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

Alphabetic index

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