2 ** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for
3 ** distribution information.
10 int bdbobj_delete(struct bdbobj
*obj
, const char *key
, size_t keylen
)
14 if (!obj
->has_dbf
) return (0);
16 memset(&dkey
, 0, sizeof(dkey
));
17 memset(&val
, 0, sizeof(val
));
18 dkey
.data
=(void *)key
;
21 #if DB_VERSION_MAJOR < 2
22 if ( (*obj
->dbf
->del
)(obj
->dbf
, &dkey
, 0)) return (-1);
24 if ( (*obj
->dbf
->del
)(obj
->dbf
, 0, &dkey
, 0)) return (-1);