Setting the value of an environment variable¶
Set the value of an environment variable
Sets the value of the environment variable variable. If the variable does not exist, it is created. If it does exist, its value is reset to that specified. The variable and its new value are available to the calling process and also to any child processes created by it.
Both variable and value may be text strings, expressions or field names.
This function returns zero if it was successful, or a non-zero value if it fails (due to insufficient memory).