bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows realloc & GNU


From: Derek Price
Subject: Re: Windows realloc & GNU
Date: Tue, 20 Sep 2005 18:10:15 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Conrad T. Pino wrote:

>It IS a valid pointer that "free" will accept gladly provided NO WRITES
>are performed OUTSIDE the allocated range.  The "free" function checks
>  
>

Assuming you mean that this works, I think it will be fine:

    p = realloc (NULL, 0);
    free (p);

Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]