Back to index

courier  0.68.2
Functions
gdbmobj3.c File Reference
#include "gdbmobj.h"

Go to the source code of this file.

Functions

int gdbmobj_delete (struct gdbmobj *obj, const char *key, size_t keylen)

Function Documentation

int gdbmobj_delete ( struct gdbmobj obj,
const char *  key,
size_t  keylen 
)

Definition at line 8 of file gdbmobj3.c.

{
datum  dkey;

       if (!obj->has_dbf)   return (0);

       dkey.dptr=(char *)key;
       dkey.dsize=keylen;

       if (gdbm_delete(obj->dbf, dkey))   return (-1);
       return (0);
}