From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 02:46:23 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 D9A4616A4D0 for ; Mon, 12 Jan 2004 02:46:23 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id EEB7443D7D for ; Mon, 12 Jan 2004 02:45:27 -0800 (PST) (envelope-from ph.schulz@gmx.de) Received: (qmail 11314 invoked by uid 0); 12 Jan 2004 10:45:25 -0000 Received: from 217.159.0.92 by www46.gmx.net with HTTP; Mon, 12 Jan 2004 11:45:25 +0100 (MET) Date: Mon, 12 Jan 2004 11:45:25 +0100 (MET) From: "Philip Schulz" To: questions@freebsd.org MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #1954550 Message-ID: <21321.1073904325@www46.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Subject: [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 10:46:24 -0000 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. Thanks, Philip [1] http://developer.gnome.org/doc/API/2.0/glib/glib-utilities.html -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net