UDM_ENV* UdmEnvInit(UDM_ENV* Env);
Allocates or initializes an UDM_ENV variable (search context). Search context is later associated with a set of configuration commands.
If Env is a NULL pointer, the function allocates, initializes, and returns a new variable. Otherwise, the variable is initialized and the address of the variable is returned. If UdmEnvInit() allocates a new variable, it is freed when UdmEnvFree() is called to close search context.
Pointer to initialized UDM_ENV variable on success, NULL there was insufficient memory to allocate a new variable.
Example 1. UdmEnvInit
example #1
UDM_ENV *Env; if (!(Env= UdmEnvInit(NULL))) { printf('Fatal error: could not allocate Env'); exit(1); }