Article View: comp.std.c
Article #4486Re: Should free() take a pointer to const argument?
From: Christopher R. Volpe
Date: Fri, 15 Dec 1995 14:14
Date: Fri, 15 Dec 1995 14:14
17 lines
1311 bytes
1311 bytes
In article <4apn8t$bs8@newshost.lanl.gov>, tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes: |> |>But even if the byte values change, does it mean that realloc has moved the |>stuff? There may be holes which change: or two different byte values may |>correspond to the same pointer for other reasons. |> |>Of course, if the byte values are identical, any reasonable interpretation of |>the standard will say that the pointer is unchanged. You're right. You can't detect change. YOu can sometimes detect lack of change, though. -- Chris Volpe Phone: (518) 387-7766 (Dial Comm 8*833 GE Corporate R&D Fax: (518) 387-6560 PO Box 8, Schenectady, NY 12301 Email: volpecr@crd.ge.com
Technical Details
Message-ID:
<4arvsd$h1l@rdsunx.crd.ge.com>Path:
arc1-ca.pugleaf.net!bart.crd.ge.com!volpeReferences:
<818626119snz@genesis.demon.co.uk> <4am3dn$6s9@natasha.rmii.com> <818898225snz@genesis.demon.co.uk> <4apkl2$8sp@rdsunx.crd.ge.com> <4apn8t$bs8@newshost.lanl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bart.crd.ge.com!volpe From: volpe@bart.crd.ge.com (Christopher R. Volpe) Newsgroups: comp.std.c Subject: Re: Should free() take a pointer to const argument? Date: 15 Dec 1995 14:14:37 GMT Organization: GE Corporate Research & Development Sender: volpe@bart (Christopher R. Volpe) Distribution: world Message-ID: <4arvsd$h1l@rdsunx.crd.ge.com> References: <818626119snz@genesis.demon.co.uk> <4am3dn$6s9@natasha.rmii.com> <818898225snz@genesis.demon.co.uk> <4apkl2$8sp@rdsunx.crd.ge.com> <4apn8t$bs8@newshost.lanl.gov> Reply-To: volpe@ausable.crd.ge.com NNTP-Posting-Host: bart.crd.ge.com