08-02-2008, 01:32 PM
sparker Wrote:Code:uint32 ptr_address = (uint32)vp;
This is not portable code. See ANSI C90 6.3.4. You're invoking implementation defined behaviour.
That would be why I made a note about MISRA rule 11.3 in my post. Still, this is off-topic.