Hacker News new | past | comments | ask | show | jobs | submit login

Is calloc avoided for a good reason? Or is it something that people should be doing in most cases?



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: