This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc attributes and realloc


Bruce Korb wrote:
You can.  You *cannot* compare the data pointed to by what now could
be unmapped memory, but by golly you certainly can compare the pointer
values.

I don't understand your reasoning here. C does not permit general pointer comparisons, or rather does not provide defined semantics for all such comparisons, for example, you cannot use > on pointers and expect it to create a well-ordering of pointers.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]