manpagez: man pages & more
info gdbm
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9 Removing records from the database.

To remove some data from the database, use the gdbm_delete function.

gdbm interface: int gdbm_delete (GDBM_FILE dbf, datum key)

Deletes the data associated with the given key, if it exists in the database dbf. The file on disk is updated to reflect the structure of the new database before returning from this function.

The parameters are:


The pointer returned by gdbm_open.

datum key

The search key.

The function returns ‘-1’ if the item is not present or the requester is a reader. The return of ‘0’ marks a successful delete.

This document was generated on January 24, 2014 using texi2html 5.0.

© 2000-2023
Individual documents may contain additional copyright information.