Blogs / Personal blogs

Anmol Sarma

anmolsarma.in

Popular posts
1
Total points
191
HN comments
263
Rank
#13,217 personal

Visit anmolsarma.in → RSS feedOn Hacker News Apr 2019 – Apr 2019

Systems & Performance 1Software Engineering 1

1

Stop Memsetting Structures

TL;DR: Use C99’s designated initializers instead. Because it’s 2019! Edit: This post was discussed on Hacker News, Lobste.rs and /r/c_programming. It has been updated to address some of the concerns raised by commenters. One of the little things that annoy me when reading code is the unnecessary use of memset() to…