From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp References: <82rh3j$sfu AT cantine DOT wu-wien DOT ac DOT at> <385EC088 DOT 8403BF22 AT ibm DOT net> <7GM74.500$PK3 DOT 5161 AT dfiatx1-snr1 DOT gtei DOT net> <385FE52F DOT E2F5572B AT east DOT sun DOT com> Subject: Re: Problems with MALLOC and FREE Lines: 15 Organization: Pin Eight Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: X-Trace: /w/U2+VqYNPhUn8z+UB/MWKb6FR+QE3VtL40HFrL+tId44wB1jHuF3nNyuj43skhSLQy1SSzB6j6!hskL+z4opD74OVaEwHlLJS4bNorXXSoyAbJ97UzOafU0gYsEtz3kR6WXeNTV+ecOH/SnmA== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 22 Dec 1999 03:38:25 GMT Distribution: world Date: Wed, 22 Dec 1999 03:38:25 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eric Sosman" wrote in message news:385FE52F DOT E2F5572B AT east DOT sun DOT com... > Damian Yerrick wrote: > > [...] > > Oh, by the way, does anyone know what the standard > > says should happen when you free(NULL)? > > "If _ptr_ is a null pointer, no action occurs." Simplifies things a bit. #define Free(ptr) free(ptr); ptr = NULL