DlInit - demographics_library - Latest

Demographics Library Reference for Windows and UNIX

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Demographics Library
Version
Latest
ft:locale
en-US
Product name
Demographics Library
ft:title
Demographics Library Reference for Windows and UNIX
Copyright
2024
First publish date
1994
ft:lastEdition
2025-10-14
ft:lastPublication
2025-10-14T21:16:32.399000
L1_Product_Gateway
L2_Product_Segment
L3_Product_Brand
L4_Investment_Segment
L5_Product_Group
L6_Product_Name

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);