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

> Why can't I have a malloc() that does lazy copy-on-write for large array

malloc will generally do lazy copy-on-write above a certain limit; it was 128kb for glibc last time I checked.

> why can't I have an error checking malloc()

reallocarray is becoming the de-facto standard for that.

> why can't I have a calloc() that allocates the memory up front and doesn't zero it out?

Er, malloc?




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

Search: