O'Reilly logo

Berkeley DB by Sleepycat™ Software, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required