lrt_tuxgetenv
| Environment Variable Functions |
Returns a value corresponding to an environment name.
char *lrt_tuxgetenv( char *name );
| name | Name of the environment variable (case sensitive). |
The lrt_tuxgetenv function searches the environment list for a value corresponding to the environment name. This function is useful for portability of environment values across different platforms that don't normally have environment variables.
Return Values
If the function succeeds, it returns a pointer to the value in the current environment. Otherwise, it returns a NULL pointer.
Parameterization
The following argument(s) can be parameterized using standard parameterization: name
Example
The following example shows how to retrieve environment variables with lrt functions. The lrt_tuxgetenv function retrieves the value of the NLSPATH variable.
// set the server address
lrt_tuxputenv("WSNADDR=//server:65535");
// find out what which natural language used.
lrt_tuxgetenv("NLSPATH");
// use default settings to get environment information.
lrt_tuxreadenv(NULL, NULL);

