extern "C" CMDAPIIMPORT APIRET CMDSetEnv ( const char * name, const char * value, int override ) ;
This function sets the value of the environment variable named by the string pointed to by the name parameter to the value pointed to by the value parameter. It returns zero on success and a non-zero system error code on failure. An existing environment variable of the same name is only overwritten if the override parameter is non-zero.
If the environment variable name contains an equals ('=') character, the behaviour is undefined.