It is important that every file opened is also closed. This is needed to properly update its disk structure and maintain a consistent locking state on the file.
This function closes the
gdbm file and frees all memory
associated with it. The parameter is:
The pointer returned by
Gdbm_close returns 0 on success. On error, it sets
gdbm_errno and system
errno variables to the codes
describing the error and returns -1.