Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

The LMX_Putenv function lets you change environment variables.

Prototype

Code Block
languagecpp
LMX_STATUS LMX_Putenv
(
   const char *szEnvironmentVariable
);

Parameters 

szEnvironmentVariable
[in] Environment variable name and value, in the format "name=value" (identical to the C API putenv() function).

Return values

On success, this function returns the status code LMX_SUCCESS.

On failure, this function returns an error code in the format described in Return codes.

Remarks

This function should be used instead of using functions such as putenv or unsetenv.

Example:

Code Block
languagecpp
LMX_Putenv("LMX_LICENSE_PATH=local_license.lic");