CMDSetEnv

Synopsis

extern "C" CMDAPIIMPORT APIRET CMDSetEnv ( const char * name, const char * value, int override ) ;

Description

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.


The 32-bit Command Interpreter is © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.