logoalt Hacker News

leni536today at 1:36 PM1 replyview on HN

Specified by whom? Not the C standard for sure. It is indeed soecified by individual ABIs, and ABIs don't tend to do anything too weird, but that's another question.


Replies

jstimpfletoday at 2:46 PM

looks like I was wrong, but here is the de-facto standard I was relying on over the years ;-). Not that I've memcpied many structs to file directly btw. http://www.catb.org/esr/structure-packing/

show 1 reply