.TH dbm_delete() "" "" "NDBM Function (libgdbm)"
.PC "Delete records from an NDBM data base"
.B "#include <ndbm.h>"
\fBint dbm_delete (\fIdatabase\^\fB, \fIkey\^\fB)\fR
\fBDBM *\fIdatabase\^\fB;\fR
\fBdatum \fIkey\^\fB;\fR
.PP
Database function
.B dbm_delete()
deletes the record with
.I key
from the data base to which
.I database
points.
.I database
must have been opened by a call to
.BR dbm_open() .
.PP
If all goes well,
.B dbm_delete()
returns zero.
It returns \-1 if
.I database
did not contain a record with
.IR key ,
or if
.I database
were opened into read-only mode.
.SH "See Also"
.XR "ndbm.h," ndbm.h
.XR "libgdbm" libgdbm
.SH Notes
This function is a wrapper for function
.BR gdbm_delete() .
It is included for compatibility with existing code.
.PP
For a statement of copyright and permissions on this routine, see the
Lexicon entry for
.BR libgdbm .
