Article View: comp.std.c
Article #4488Should free() take a pointer to const argument?
From: Jeff Dunlop
Date: Fri, 15 Dec 1995 20:29
Date: Fri, 15 Dec 1995 20:29
15 lines
1103 bytes
1103 bytes
fdcu> Even if the realloc call returns fdcu> the same address as the one passed to it no strictly conforming program fdcu> can rely on this fact or even detect it since all pointers to the fdcu> original object are indeterminate after the successful call to realloc. fdcu> Even if the 2 instances of i have the same memory address they must be fdcu> regarded as distinct objects because they can never be referenced at the fdcu> same time, pointers to them can never be compared Why can't they be compared? Jeff -- : Fidonet: Jeff Dunlop 1:203/16 .. speaking for only myself. : Internet: Jeff.Dunlop@dbsoft.gigo.com
Technical Details
Message-ID:
<1a5_9512152056@gigo.com>Path:
arc1-ca.pugleaf.net!pagesat.net!calweb!gigo!dbsoft!jeff.dunlopReferences:
<818626119snz@genesis.demon.co.uk> <4am3dn$6s9@natasha.rmii.com> <818898225snz@genesis.demon.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!pagesat.net!calweb!gigo!dbsoft!jeff.dunlop From: Jeff.Dunlop@dbsoft.gigo.com (Jeff Dunlop) Newsgroups: comp.std.c Subject: Should free() take a pointer to const argument? Date: 15 Dec 95 20:29:40 Organization: Fidonet: DB/Soft Online - Sacramento, CA (916)927-2349 Message-ID: <1a5_9512152056@gigo.com> References: <818626119snz@genesis.demon.co.uk> <4am3dn$6s9@natasha.rmii.com> <818898225snz@genesis.demon.co.uk> NNTP-Posting-Host: gigo.com