From owner-freebsd-questions@FreeBSD.ORG Mon Apr 5 23:06:53 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0186E1065672 for ; Mon, 5 Apr 2010 23:06:53 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 8DFEB8FC17 for ; Mon, 5 Apr 2010 23:06:52 +0000 (UTC) Received: by bwz8 with SMTP id 8so3355959bwz.3 for ; Mon, 05 Apr 2010 16:06:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.135.219 with HTTP; Mon, 5 Apr 2010 16:06:50 -0700 (PDT) X-Originating-IP: [93.203.29.237] In-Reply-To: <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com> References: <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com> Date: Tue, 6 Apr 2010 01:06:50 +0200 Received: by 10.204.141.133 with SMTP id m5mr7409982bku.91.1270508810548; Mon, 05 Apr 2010 16:06:50 -0700 (PDT) Message-ID: From: "C. P. Ghost" To: Jim Sander Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: example C code for reading db hash files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2010 23:06:53 -0000 On Mon, Apr 5, 2010 at 10:28 PM, Jim Sander 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/