Previous: Creating database structure, Up: Programmers guide


5.2 Functions

The prototypes of functions are in avldb.h.

5.2.1 malloc like funtions behaviour

These functions never returns indication of failure, in the case of malloc failure library aborts if envinroment variable "AVLDB_ABORT_OK" is set. If no envinroment variable "AVLDB_ABORT_OK" is seen, malloc wrapper calls user define malloc-failure handler-function, default is sleep() .

5.2.2 Data types

— Data type: AVLDB_IFTYPE avldb handle

API functions returning AVLDB_IFTYPE returns NULL on failure, oherwise AVLDB_IFTYPE handle .

Integer API functions returns 0 have no common return template.