logoalt Hacker News

badc0ffee04/23/20251 replyview on HN

You could always `bzero` or `memset` the entire struct to 0.


Replies

trinix91204/23/2025

But only if it contains strictly POD members, otherwise it's UB.