Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!lanl!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: An interesting behaviour in printf Message-ID: <9891@smoke.BRL.MIL> Date: 22 Mar 89 03:18:59 GMT References: <960@Portia.Stanford.EDU> <15938@cup.portal.com> <2343@buengc.BU.EDU> <9874@smoke.BRL.MIL> <4273@xyzzy.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <4273@xyzzy.UUCP> throopw@agarn.dg.com (Wayne A. Throop) writes: >I'd druther do something close to > kill( getpid(), SIGSEGV ); >in such a case. I've had another similar suggestion mailed to me. All I can say is, my experience with this has been that printing "(null)" has not encouraged non-portable coding here (but then I try to stamp it out anyway), and letting the application continue to run has usually been more helpful than harmful. Normally upon seeing "(null)" in output where some meaningful string was expected, the software maintainer fixes the null pointer bug and no damage was done.