Next: Sequential, Previous: Fetch, Up: Top [Contents][Index]
To remove some data from the database, use the gdbm_delete
function.
Deletes the data associated with the given key, if it exists in the database dbf.
The parameters are:
The pointer returned by gdbm_open
.
The search key.
The function returns -1
if the item is not present or if an
error is encountered. Examine the gdbm_errno
variable or
the return from gdbm_last_errno (dbf)
to know the reason.
The return of 0
marks a successful delete.