Shady programming, ignoring return values

G.R.Tomasevich grt at twitch.UUCP
Mon May 12 23:18:05 AEST 1986


> 		w = y;				return w = x,
> 		return;

As usual, news arrived out of order.  Someone else already barfed on this.

> Yes, but it all depends on what you're willing to put up with. I find it
> terribly ugly having to cast printf's or close's to void. And as

What happens if your program is a filter and the printf() return values
are trying to tell you something, such as that the disk is full?  We have
had people do that to us with overnight program runs.  Even if your program
is not a filter WRT stdout, you might still redirect output, or even
stderr also for an overnight run.  A 'little output' could become a lot for
some pathological reason.
-- 
	George Tomasevich, ihnp4!twitch!grt
	AT&T Bell Laboratories, Holmdel, NJ



More information about the Comp.lang.c mailing list