News Score: Score the News, Sort the News, Rewrite the Headlines

The Byte Order Fiasco

01 may 2021 @ justine's web page One of the most challenging topics in the C / C++ programming language is how to handle endianness properly. There's a surprising amount of depth here. I've been programming in C for a while and I feel like I keep learning about this subject, even when I thought I'd seen it all. Let's say we want to deserialize a 32-bit integer off the wire, using code that'll work on machines like IBM's s390x mainframes (one of the few big endian chips still in play). Here's th...

Read more at justine.lol

© News Score  score the news, sort the news, rewrite the headlines