Frustrated trying to be portable

Doug Gwyn gwyn at smoke.brl.mil
Tue Mar 5 03:02:51 AEST 1991


In article <15938.27d2c9d3 at levels.sait.edu.au> xtdn at levels.sait.edu.au writes:
>> for some architectures the C run-time implementation
>> may trap on an attempt to compare two pointers to different objects.
>Does this include == and !=, or just the other inequalities?

The C standard requires that the exact equality test work in such a case;
X3J11 was willing to require the additional "normalization" of pointers
for that case, but not for general relational tests of pointers.



More information about the Comp.std.c mailing list