logoalt Hacker News

ueckertoday at 12:59 PM0 repliesview on HN

Yes, using an arbitrary type that is different from the one of the object is UB. But any access of a representation byte using a character pointer is well defined, not just memcpy and I would also not call memcpy useless.