From owner-freebsd-questions Tue Mar 14 21:13: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 52AAA37B8D5 for ; Tue, 14 Mar 2000 21:12:59 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id AAA57403; Wed, 15 Mar 2000 00:12:52 -0500 (EST) (envelope-from cjc) Date: Wed, 15 Mar 2000 00:12:52 -0500 From: "Crist J. Clark" To: Zhihui Zhang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: library routine used to read a configuration file Message-ID: <20000315001252.C56931@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from zzhang@cs.binghamton.edu on Tue, Mar 14, 2000 at 11:59:28AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 14, 2000 at 11:59:28AM -0500, Zhihui Zhang wrote: > > I need to write a daemon that reads a configuration file when it starts. > Is there any library routines that can help me on this? Thanks a lot. scanf(1) OK, got that out of the way. Seriously, you may want to look at and possibly steal^H^H^H^H^H^H appropriate some source code from existing daemons that read files in formats similar to the ones you wish to make. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message