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