Function : OS Environment Variables

OSGetEnvironmentInt - Return integer value of an environment variable.
----------------------------------------------------------------------------------------------------------

#include <osenv.h>

int LNPUBLIC OSGetEnvironmentInt(
char far *VariableName);

Description :

OSGetEnvironmentInt is a wrapper around the API OSGetEnvironmentLong. It takes the specified envrironment string, converts the text associated with it into type "int", and returns that value to the current context.

Domino and Notes environment variables are stored in notes.ini, and can be set from the Lotus Domino Server via the SET CONFIG console command.

Example (from Server Console):
SET CONFIG TEST_INTEGER=100


Note: this function is implemented as a macro:


#define OSGetEnvironmentInt(s) ((int) OSGetEnvironmentLong(s))

Parameters :

See Also :

OSGetEnvironmentLong
----------------------------------------------------------------------------------------------------------