From owner-freebsd-questions Tue Mar 14 21:35:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (h139-142-245-96.ss.fiberone.net [139.142.245.96]) by hub.freebsd.org (Postfix) with ESMTP id C622937B82B for ; Tue, 14 Mar 2000 21:35:09 -0800 (PST) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id XAA17550; Tue, 14 Mar 2000 23:35:13 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Tue, 14 Mar 2000 23:35:13 -0600 (CST) From: Ryan Thompson To: cjclark@home.com Cc: Zhihui Zhang , freebsd-questions@FreeBSD.ORG Subject: Re: library routine used to read a configuration file In-Reply-To: <20000315001252.C56931@cc942873-a.ewndsr1.nj.home.com> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Crist J. Clark wrote to Zhihui Zhang: > 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) ^^^ scanf(3), certainly? Or did I miss something here? > > 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. > -- Ryan Thompson Systems Administrator, Accounts Phone: +1 (306) 664-1161 SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message