COHERENT manpages

This page displays the COHERENT manpage for dbm_delete() [Delete records from an NDBM data base].

List of available manpages
Index


dbm_delete() -- NDBM Function (libgdbm)

Delete records from an NDBM data base
#include <ndbm.h>
int dbm_delete (database, key)
DBM *database;
datum key;

Database function  dbm_delete() deletes the  record with key  from the data
base to which database points.  database must have been opened by a call to
dbm_open().

If all goes well, dbm_delete() returns zero.  It returns -1 if database did
not contain  a record with key,  or if database were  opened into read-only
mode.

See Also


Notes

This function  is a wrapper for function gdbm_delete().  It is included for
compatibility with existing code.

For  a statement  of copyright  and  permissions on  this routine,  see the
Lexicon entry for libgdbm.