Hacker News new | ask | show | jobs
by Twirrim 3489 days ago
n00b question: Why would you not memset? I would assume you'd want to start with all zeroed memory in almost all cases.
1 comments

Not always, you could be planning on filling the data with something else. Very common to do that.
I.e.: reading from a file or copying memory?