Hi Werner,
I got two
letters back, saying that malloc(0) is illegal because
zero-length arrays are illegal, and the other vice versa.
And now we have zero length arrays an UB malloc(0).
malloc(0) isn't undefined behaviour but implementation defined.
Are there prominent modern implementations which consider it an error so
return NULL?
--
Cheers, Ralph.