Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cton
· 4y ago · 0 comments
Is calloc avoided for a good reason? Or is it something that people should be doing in most cases?
Comments
[–]
valleyer
4y ago
There is often a small amount of extra runtime cost to zero-initialize the buffer. Other than that, no reason other than inertia.
[–]
kragen
4y ago
it has two arguments