lint question

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jan 11 17:57:07 AEST 1989


In article <2679 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>	if(fprintf(stderr, "...: operation failed\n") == FAIL) {
>		if(!(fp = fopen("/dev/tty", "w"))) {
>			if(!(fp = fopen("/dev/console", "w"))) {

Not really, because if somebody has redirected stderr it is probably
for a good reason, and such policy should not be overridden by an
application that doesn't know what's going on outside.  Blathering
on the console is particularly obnoxious in most cases.



More information about the Comp.lang.c mailing list