DlInit - demographics_library - 2024.01

Demographics Library Reference for Windows and UNIX

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Demographics Library
Version
2024.01
Language
English
Product name
Demographics Library
Title
Demographics Library Reference for Windows and UNIX
Copyright
2024
First publish date
1994
Last updated
2024-05-17
Published on
2024-05-17T02:16:20.391253

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