Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cton
on Nov 13, 2022
|
parent
|
context
|
favorite
| on:
Why does calloc exist? (2016)
Is calloc avoided for a good reason? Or is it something that people should be doing in most cases?
valleyer
on Nov 13, 2022
|
next
[–]
There is often a small amount of extra runtime cost to zero-initialize the buffer. Other than that, no reason other than inertia.
kragen
on Nov 13, 2022
|
prev
[–]
it has two arguments
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: