3 ms·
I already mentioned the alternative. memcpy() into a char array.
by CyberRabbi 5y ago
I already mentioned the alternative. memcpy() into a char array.
- Cloudef 5y agoMemcpy doesnt fix endianess
- CyberRabbi 5y agoIt was never claimed to deal with endianness and while we're on the subject of binary-layout, union-based binary manipulation is even worse on that front as no specific binary layout is mandated for structures or floating points.