From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: How assign to NULL POINTER Date: Thu, 14 Nov 1996 18:48:52 -0800 Organization: Alcyone Systems Lines: 18 Message-ID: <328BDA14.3AD96D11@alcyone.com> References: <1 DOT 5 DOT 4 DOT 16 DOT 19961114132000 DOT 29cf1b84 AT dmeasc DOT rc DOT ipt DOT br> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Cesar Scarpini Rabak wrote: > Eli, this code fragment compiled w/DJGPP (albeit replacing myfunc by main > straight) runs w/o problems! > > I'm afraid that only assignments are forbidden, dereferencing (though I > agree that point to a coding error as well are allowed). Whether or not a _particular_ compiler crashes with a given call is irrelevant; the ANSI C standard states that dereferencing a null pointer for any reason is a Bad Thing To Do and will cause Bad Things To Happen. -- Erik Max Francis | max AT alcyone DOT com Alcyone Systems | http://www.alcyone.com/max/ San Jose, California | 37 20 07 N 121 53 38 W &tSftDotIotE | R^4: the 4th R is respect "But since when can wounded eyes see | If we weren't who we were"