Y
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
valleyer
1313 days ago
There is often a small amount of extra runtime cost to zero-initialize the buffer. Other than that, no reason other than inertia.
link
kragen
1313 days ago
it has two arguments
link