extern "C" CMDAPIIMPORT APIRET CMDGetEnv ( char * CMDBYREF var, const char * name ) ;
This function queries the value of the environment variable named by the string pointed to by the name parameter. On success it returns zero and returns the value of the variable via the parameter var. On failure it returns a non-zero system error code.