| delorie.com/archives/browse.cgi | search |
| Newsgroups: | comp.os.msdos.djgpp |
| From: | Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca> |
| Subject: | Re: Freeing null |
| Message-ID: | <Pine.SGI.3.91.970227155101.18859A-100000@chinook.physics.utoronto.ca> |
| Nntp-Posting-Host: | chinook.physics.utoronto.ca |
| Sender: | news AT info DOT physics DOT utoronto DOT ca (System Administrator) |
| Mime-Version: | 1.0 |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |