Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2010 01:06:50 +0200
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Jim Sander <jimsander@mac.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: example C code for reading db hash files
Message-ID:  <w2zd74eb87c1004051606ocd7de402je82828cbfc1ac27a@mail.gmail.com>
In-Reply-To: <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com>
References:  <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 5, 2010 at 10:28 PM, Jim Sander <jimsander@mac.com> wrote:

> Is there a handy C code reference or examples for db files? (google has not
> been kind to me) I have a tied hash from Perl using DB_File, and need read
> only access in a C program.
>

You mean a reference... like this?

http://www.oracle.com/technology/documentation/berkeley-db/db/index.html

There are C, C++ and other bindings for the Berkeley DB,
each of which comes with some examples.
Use the bindings you feel most comfortable with.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?w2zd74eb87c1004051606ocd7de402je82828cbfc1ac27a>