Hacker News new | ask | show | jobs
by mdergosits 3678 days ago
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.