From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 03:10:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 814F116A4CE for ; Mon, 12 Jan 2004 03:10:55 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B9C643D1D for ; Mon, 12 Jan 2004 03:10:53 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: from madras.dyndns.org (localhost [127.0.0.1]) by madras.dyndns.org (8.12.9p1/8.12.9) with ESMTP id i0CB9ZL9008929; Mon, 12 Jan 2004 22:09:35 +1100 (EST) (envelope-from ggop@madras.dyndns.org) Received: (from ggop@localhost) by madras.dyndns.org (8.12.9p1/8.12.9/Submit) id i0CB9YYb008928; Mon, 12 Jan 2004 22:09:34 +1100 (EST) Date: Mon, 12 Jan 2004 22:09:33 +1100 From: Gautam Gopalakrishnan To: Philip Schulz Message-ID: <20040112110933.GA8911@madras.dyndns.org> References: <21321.1073904325@www46.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21321.1073904325@www46.gmx.net> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: [OT] Configuration file parsing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 11:10:55 -0000 On Mon, Jan 12, 2004 at 11:45:25AM +0100, Philip Schulz wrote: > Hello! > > Let me apologize for asking an offtopic question. If you feel offended, > please ignore this eMail. > > I'm currently working on a program which will be used in a closed company > environment. The programm is written in C. For this program, I need to find > a > way of parsing a configuration file. I found a library which can do exactly > what I need, it's GLib's lexical scanner [1]. However, it's licensed under > the > GPL, so I guess it won't work for me. > So my question: How can I easily parse a configuration file? Any pointers > appreciated. Guess for windows ini files, you could use: http://freshmeat.net/projects/inifileparser/ Gautam