Hacker News new | ask | show | jobs
by badc0ffee 417 days ago
You could always `bzero` or `memset` the entire struct to 0.
1 comments

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