Newsgroups: comp.os.msdos.djgpp From: Peter Berdeklis Subject: Re: Freeing null Message-ID: Nntp-Posting-Host: chinook.physics.utoronto.ca Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator) Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: University of Toronto - Dept. of Physics In-Reply-To: <5etnpb$42p@freenet-news.carleton.ca> Date: Thu, 27 Feb 1997 20:54:45 GMT References: <5etnpb$42p AT freenet-news DOT carleton DOT ca> Lines: 13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 25 Feb 1997, Paul Derbyshire wrote: > > What are the effects of free(ptr) if ptr happens to be null? Nothing. At least, nothing bad. :) I'm pretty sure that this is ANSI C. I'm absolutely sure that delete 0 is safe (C++ Draft Standard). --------------- Peter Berdeklis Dept. of Physics, Univ. of Toronto