int env_set

The interface has the following parameters.
  • Synopsis:
    int env_set(const char *varname, const char *value);
  • Description: The interface is used to set an environment variable.
  • Parameter:
    • varname: The environment variable you want to change.
    • varvalue: The new value of the environment variable.
  • Return:
    • Success: 0.
    • Failure: 1.