env_get

The interface has the following parameters.
  • Synopsis:
    char *env_get(const char *varname);
  • Description: The interface is used to get the value of an environment variable.
  • Parameter:
    • varname: The environment variable you want to get value from.
  • Return:
    • Success: Value of the target environment variable, or "NULL" if the environment variable is not found.
    • Failure: Any other values.