Programming Guide



sm_getenv

Get the value of an environment variable

char *sm_getenv(char *varname);

varname
The name of the environment variable whose value is desired.

Returns

Description

.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.

Example

	vars oracle_home = sm_getenv("ORACLE_HOME")