Share this page

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

Copy code

    // 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);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: