dbm/ndbm
#define DB_DBM_HSEARCH 1 #include <db.h> typedef struct { char *dptr; int dsize; } datum;
Dbm Functions
int dbminit(char *file); int dbmclose(); datum fetch(datum key); int store(datum key, datum content); int delete(datum key); datum firstkey(void); datum nextkey(datum key);
Ndbm Functions
DBM * dbm_open(char *file, int flags, int mode); void dbm_close(DBM *db); datum dbm_fetch(DBM *db, datum key); int dbm_store(DBM *db, datum key, datum content, int flags); int dbm_delete(DBM *db, datum key); datum dbm_firstkey(DBM *db); datum dbm_nextkey(DBM *db); int dbm_error(DBM *db); int dbm_clearerr(DBM *db);
Description
The dbm interfaces to the Berkeley DB library are intended to provide high-performance implementations and source ...
Get Berkeley DB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.