Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: