manpagez: man pages & more
info gdbm
Home | html | info | man

File: gdbm.info,  Node: Close,  Next: Count,  Prev: Open,  Up: Top

4 Closing the database
**********************

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.

 -- gdbm interface: int gdbm_close (GDBM_FILE DBF)
     This function closes the 'GDBM' file and frees all memory
     associated with it.  The parameter is:

     DBF
          The pointer returned by 'gdbm_open'.

     '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.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.