Programming Guide |
Get the value of an environment variable
char *sm_getenv(char *varname);
- varname
- The name of the environment variable whose value is desired.
- The value of the environment variable named by varname or a null string.
.The environment variable table or Panther's copy of this table is searched for the variable named varname. If the variable is found, its value is returned, else the null string ("") is returned.
vars oracle_home = sm_getenv("ORACLE_HOME")