🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.windows.x
Article #102

Re: When Xfree() passed NULL as the argument...

#102
From: Satoshi ASAMI
Date: Sat, 29 Aug 1992 17:33
22 lines
1192 bytes
In article <KOH-I.92Aug28142325@nekobus.kubota.co.jp>
        koh-i@kubota.co.jp (Koh-ichi Ito) writes:

 * #define Xfree(ptr) free((ptr))
 * 
 * $@$HDj5A$5$l$F$$(J$@$^$9!#$7$+$7!"(Jfree(NULL) $@$7$?$H$-$N7k2L$OL$Dj(J
 * $@5A$G$9$h$M(J?

K&RII P. 252:

void free(void *p)
   free deallocates the space pointed to by p; it does nothing if p is
   NULL.  p must be a pointer to space previously allocated by calloc,
   malloc, or realloc.

$@$H$$$&$3$H$G$9$N$G!"!J(JOS$@$,$A$c$s$H%$%s%W%j(J$@%a%s%H$7$F$$$l$P!K$+$^$o$J$$(J
$@$O$:$G$9$,!#(J

--
$@$"$5$_!w%+%j%U%)%k%K%"(J
asami@cs.Berkeley.EDU
asami@is.s.u-tokyo.ac.jp
Technical Details
Message-ID: <ASAMI.92Aug29133335@antipodes.cs.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!mtfuji!asami
References: <KOH-I.92Aug28142325@nekobus.kubota.co.jp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!mtfuji!asami
From: asami@cs.Berkeley.EDU (Satoshi ASAMI)
Newsgroups: fj.windows.x
Subject: Re: When Xfree() passed NULL as the argument...
Message-ID: <ASAMI.92Aug29133335@antipodes.cs.Berkeley.EDU>
Date: 29 Aug 92 17:33:35 GMT
References: <KOH-I.92Aug28142325@nekobus.kubota.co.jp>
Sender: news@mtfuji.gw.u-tokyo.ac.jp
Reply-To: asami@cs.berkeley.edu
Distribution: fj
Organization: CS Div., Dept. of EECS, UC Berkeley
Lines: 22
In-reply-to: koh-i@kubota.co.jp's message of 28 Aug 92 14:23:25 JST