D Eloquence Library

The INIT Function

The INIT function initializes and configures a database subsystem. The syntax is as follows:

   int cc = idb_init(max_db, max_path, max_buf, max_open);

   int max_db;
   int max_path;
   int max_buf;
   int max_open;
All arguments are ignored and are only present for compatibility with the previous implementation of the database library.

Description

The Idb_init function will initialize the database subsystem. It is called is implicitly when the first database is opened.

All function arguments are ignored and are only present to achieve source and binary (in case of eloqdb.dll) compatibility with the previous implementation. You should pass a zero value for all arguments.

Return value

Returns 0 if successful, or -1 if an error was encountered.

Example

   if(idb_init(0,0,0,0)) {
      printf("unable to setup database subsystem");
      exit(1);
   }

Eloquence Database Manual - 19 DEC 2002