Re:Depressing and faintly terrifying days for the C standard...
by loup-vaillant on Thursday May 31, 2018 @04:25AM
(#17194832)
I believe there's an exception for the likes of `memcpy()`. Something along the lines of "type punning and reading indeterminate values is undefined except when we're reading through a `char*` or something.
I'll check the unbelievably thick book that tries to specify C11 (I've printed it, it's over 2 pounds).
If it were otherwise, you couldn't `memcpy()` structures around.