News for hackers. Stuff that matters.
Re:The Lost Art of C Structure Packing (2014) by yuubi on Friday August 05, 2016 @03:53PM (#12235302)
> fixed-width numeric types

uint32_t and friends instead of the implementation-defined unsigned int/long.

See http://pubs.opengroup.org/onlinepubs/007904975/basedefs/stdi... for many details (including things like the name for "the fastest signed integer type with at least 8 bits", which could be signed char on machines that support byte access in hardware and signed 32-bit on machines where byte addressing means loading a word, bit-bashing the new value in, and storing it back).

There are no comments on this comment yet.