Subject: Re: "fprintf(stdout, ..." in sysctl(8).
To: Christos Zoulas <christos@zoulas.com>
From: Simon Burge <simonb@netbsd.org>
List: tech-userlevel
Date: 05/27/2000 15:57:39
Christos Zoulas wrote:

> In article <200005260449.OAA26691@balrog.supp.cpr.itg.telecom.com.au>,
> Simon Burge <simonb@netbsd.org> wrote:
> > I'm inside sysctl(8) at the moment, and there's heaps of
> > "fprintf(stdout, ..." and not a single "printf(..." - is
> > there any sane reason for this?
> 
> I've seen similar code a *long* while ago; the rationale I got then
> is that it was done so that it would be easy to s/stdout/outfp/g and
> send the output to another file.

No harder than s/printf(/fprintf(outfp)/, or even "foo > outfile" :-)

I'll change it to something a little more aesthetic (printf) then...

Simon.