DMINIT(5ICD)

NAME
dmInit - initialize the DDM environment

SYNOPSIS

#include "dmincl.h"
dmInit (toolname)
char *toolname;

PARAMETERS

toolname
    name of the invoking tool.

DESCRIPTION
The function dmInit() initializes the DDM (Design Data Management) environment, it must be called by the application program before one of the other DMI (Data Management Interface) functions is called. The function dmInit() will initialize the global variable icdpath with the home directory of the username of the NELSIS IC Design System. The following environment variables can be set: The environment variable ICDUSERNAME can be used to overrule the default ICD username 'cacd'. The environment variable ICDPATH can be used to overrule the home directory of the ICD username.

DIAGNOSTICS
If the call to dmInit() is successful 0 is returned. If dmInit() fails -1 will be returned, dmerrno will be set to DME_INIT, and a call to function dmError() will be done.

SEE ALSO
dmQuit(5ICD).

NOTE
There are no DDM environment variables in this release which are initialized by dmInit().