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

> In article <>,
> Simon Burge <> 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...