Go to the previous, next section.

Closing the database.

It is important that every file opened is also closed. This is needed to update the reader/writer count on the file. This is done by:

gdbm_close(dbf);

The parameter is:

GDBM_FILE dbf
The pointer returned by gdbm_open.

Closes the gdbm file and frees all memory associated with the file dbf.

Go to the previous, next section.