int Ni_SetValueInt( Ni_node restrict n, long value );
Sets the given node's value to an integer value (a long integer).
n (in) should be the Ni_node whose value you're trying to set.
value (in) should be the long integer to use as n's new value.
Returns the string length of value as a decimal number (e.g. passing 15 would return 2), or a negative integer in an error condition (which includes trying to set the value of a root node, since root nodes can't have values).
Also returns a negative integer if you pass NULL for n.
This function is implemented exactly as the one-liner:
return Ni_ValuePrint(n, "%ld", value);
Thus, see Ni_ValuePrint().
This function cannot be used to remove a node's value. See Ni_SetValue() for how to remove values.
See also Ni_SetValue().