News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by masklinn on Tuesday January 19, 2016 @05:59AM (#10929896)
> The idea that C89 did not mandate this makes sense to me because I remember now-obsolete Unixes not liking this either.

C89 did mandate this:

> If ptr is a null pointer, the realloc function behaves like the malloc function for the specified size.

C89 also mandated that realloc(ptr, 0) be equivalent to free(ptr), which was removed in C99:

> If size is zero and ptr is not a null pointer, the object it points to is freed.

There are no comments on this comment yet.