fgl_setenv()

Sets the value of an environment variable.

Syntax

fgl_setenv(
   name STRING,
   value STRING )
  1. name is the name of the environment variable.
  2. value is the value to be set.

Usage

The fgl_setenv() function sets or modifies the value of an environment variable.

There is a little difference between Windows™ and UNIX™ platforms when passing a NULL as the value parameter: On Windows platforms, the environment variable is removed, while on UNIX, the environment variable gets an empty value (i.e. it is not removed from the environment).

Important: You may experience unexpected results if you change environment variables that are already used by the current program - for example, when you are connected to INFORMIX and you change the INFORMIXDIR environment variable.