M
Micah Cowan
Irrwahn Grausewitz said:Micah Cowan said:The fact that they may have different representations is
completely uninteresting. The result is well-defined for
conversion from any one pointer type to any other, including
those requiring casts. It is only the subsequent reading of that
value that can be dangerous: however, such is not the case for a
pointer-to-unsigned-char. This is *explicitly* sanctioned by the
standard.
Yikes. I need some more coffee. =%]
BTW: Are you referring to ISO/IEC 9899:1999 6.3.2.3#7 or is there
any other section in the standard about this matter?
I'm referring to 6.3.2.3#7 for conversions between pointer types;
6.5#7 for reading as a character array.
(Of course, alignment problems are nonexistent for the character types,
so actually evaluating the pointer without dereferencing it would
be okay without 6.5#7).
-Micah