| Overview | Group | Index | Concepts | 
The routine CPXputenv sets an environment variable to be
 used by CPLEX. Use it instead of the standard C Library
 putenv function to make sure your application ports properly to
 Windows. Be sure to allocate the memory dynamically for the string passed to
 CPXputenv.
As with the C putenv routine, the address of the character
 string goes directly into the environment. Therefore, the memory 
 identified by the
 pointer must remain active throughout the remaining parts of the application 
 where CPLEX runs. Since global or static variables are not
 thread safe, ILOG recommends dynamic memory allocation of the
 envsetting string. 
Example
 char *envstr = NULL;
 envstr = (char *) malloc (256);
 if ( envstr != NULL ) {
    strcpy (envstr,
            "ILOG_LICENSE_FILE=c:\\myapp\\license\\access.ilm");
    CPXputenv (envstr);
 }
 | envsetting_str | A string containing an environment variable assignment. This argument typically sets the   |