Hacker News new | ask | show | jobs
by cton 1313 days ago
Is calloc avoided for a good reason? Or is it something that people should be doing in most cases?
2 comments

There is often a small amount of extra runtime cost to zero-initialize the buffer. Other than that, no reason other than inertia.
it has two arguments