🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.windows.x
Article #104

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

#104
From: Shigeya Suzuki
Date: Sun, 30 Aug 1992 04:35
31 lines
1758 bytes
$B$9$:$-$G$9!#(B

$B$"$5$_$5$s(Bwrote:

asami> K&RII P. 252:

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

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

K&R II
    ~~
    $B",$r$3$3$G(B$B0z$-9g$$$K=P$9$N$O$A$H$^$:$$$s$8$c$J$$$+$H;W$&$N$G$9$,!#(B

$BKM$N5-21$@(B$B$H!"(B1st edition$B$G$O!"(Bnull-pointer$BEO$7$?;~$O2?$b$7$J$$$H$ODj(B
$B5A$5$l$F$$$J$+$C(B$B$?$h$&$J5$$,$7$^$9!#(B($B$=$&Dj5A$5$l$F$$$l$P7k9=9,$;$@$C(B
$B$?$+$b$7$l$J$$(B)

shigeya

$B!t(B $B3NG'$7$h$&$H$*$b$C$F(B K&R I $BC5$7$?$s$G$9$,!"0l:}$b=P$F$3$J$$(B$B!#(B
$B!t(B $B$"$l$@$1$"$C$?$N$K!D!D(B $B$I$J$?$+%U%)%m!<$7$F$$$?$@$1$^$;$s$+!#(B
$B!t(B $B$J$s$+!"$O$C$-$j$7$J$/$F5$;}$A$,0-$$$s$G$9!D!D(B
$B!t(B $B%U%)%m!<$7$J$$$G$*(B$B$3$&$H;W$C$?$s$@$1$I!"5$$K$J$C$A$c$C$F!#(B
--
$B$9$:$-$7$2$d(B
shigeya@foretune.co.jp
Technical Details
Message-ID: <SHIGEYA.92Aug30133541@dink.foretune.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!lkbreth!shigeya
References: <KOH-I.92Aug28142325@nekobus.kubota.co.jp> <ASAMI.92Aug29133335@antipodes.cs.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Newsgroups: fj.windows.x
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!lkbreth!shigeya
From: shigeya@foretune.co.jp (Shigeya Suzuki)
Subject: Re: When Xfree() passed NULL as the argument...
In-Reply-To: asami@cs.Berkeley.EDU's message of 29 Aug 92 17: 33:35 GMT
Message-ID: <SHIGEYA.92Aug30133541@dink.foretune.co.jp>
Sender: news@foretune.co.jp (LKBRETH NEWS MANAGER)
Nntp-Posting-Host: dink.foretune.co.jp
Organization: Foretune Co., Ltd.  Tokyo Japan
References: <KOH-I.92Aug28142325@nekobus.kubota.co.jp>
 <ASAMI.92Aug29133335@antipodes.cs.Berkeley.EDU>
Distribution: fj
Date: Sun, 30 Aug 1992 04:35:41 GMT
Lines: 31