News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by kazinator on Tuesday January 19, 2016 @11:52AM (#10931922)
Dang, is that right? See, I checked C99 when I posted the comment. I don't know where my old copy of C90 is, but I was mildly surprised. I had that WTF feeling "I could have sworn it was supposed to work that way!

In any case, if I'm compiling with -ansi or -std=c90 on a GCC-based platform that is hosted, the library had better behave in the C90 conforming manner. Only if if -std=c99 is used should it take the liberty with realloc(ptr, 0) being like malloc(0).

There are no comments on this comment yet.