|Official GNU Software|
5 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:
- gdbm interface: int gdbm_close (GDBM_FILE dbf)
This function closes the
gdbmfile and frees all memory associated with it. The parameter is:
The pointer returned by
Gdbm_closereturns 0 on success. On error, it sets
errnovariables to the codes describing the error and returns -1.