logoalt Hacker News

mystified5016last Friday at 2:09 PM1 replyview on HN

Null is not a unique pointer, it's a contant like -1

It returns multiple types of null pointer


Replies

comexlast Friday at 7:08 PM

The spec says that malloc(0) shall return "either a null pointer or a unique pointer". If it's null, it doesn't have to be unique.