Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sometimes I use something like:

#define ALLOC(n, type) (type)malloc(n sizeof(type))

which makes it harder to have those types of bugs, though not impossible.



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

Search: