Initializes Demographics Library.
Syntax
DlId DlInit (const char *paths)
Arguments
*paths
A list of paths to search for the files CTYST.DIR and MSAC.DIR. Input
Return Value
A valid DlId is returned if the system initializes correctly. Zero is returned, if DlInit failed.
Notes
DlInit initializes the API and allocates required memory. DlInit should be called once at the start of a session. When the session is done, DlTerm should be called to perform cleanup.
Files CTYST.DIR and MSAC.DIR are required unless the installation is licensed for "all states".
See Also
DlTerm, DlSetLicense
Example
// Initializes then terminates Demographics Library
DlId Init;
Init = DlInit(path);
if (Init==0)
{
printf("Unable to initialize demographics library.\n");
exit(1);
}
// If program reached this point, initialization was successful.
//
// Insert program code...
// ...then terminate Demographics Library.
DlTerm(Init);