logoalt Hacker News

jmgaolast Thursday at 5:50 PM1 replyview on HN

C89: https://port70.net/%7Ensz/c/c89/c89-draft.html

If the size of the space requested is zero, the behavior is implementation-defined; the value returned shall be either a null pointer or a unique pointer.


Replies

f1shylast Thursday at 6:19 PM

Isn’t -1 basically 0xffff which is a constant pointer? What am I missinterpreting?

show 1 reply