Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ai-lab!jym From: jym@wheaties.ai.mit.edu (Jym Dyer) Newsgroups: comp.lang.c Subject: Re: An interesting behaviour in printf Message-ID: <1196@rice-chex.ai.mit.edu> Date: 21 Mar 89 21:15:01 GMT References: <960@Portia.Stanford.EDU> <15938@cup.portal.com> <2343@buengc.BU.EDU> <1133@frog.UUCP> Reply-To: jym@wheaties.ai.mit.edu (Jym Dyer) Distribution: na Organization: The MIT AI Lab, Cambridge, MA Lines: 10 DEC's VAX C compiler (for VMS) crashes if you pass it a NULL for a string: printf("%s\n",NULL); Alas, it also crashes on this: printf("%.*s\n",0,NULL); Caveat emptor. <_Jym_>