Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Dangers of Super Smart Compilers. Parent comment
int i = ... float f = *(float*) &i;
union { int i; float f; } u; u.i = ... float f = u.f;
Just use memcpy :-)
There are no comments on this comment yet.
Just use memcpy :-)