logoalt Hacker News

Joker_vDlast Thursday at 5:24 PM1 replyview on HN

For instance, because you are prohibited from passing NULL to e.g. memcpy and lots of other library functions from memory.h/string.h, even when you explicitly specify a size of 0.

Another use was to use it to mint unique cookies/addresses, but malloc(1) works for this just as well.


Replies

TZubirilast Thursday at 5:46 PM

Mmmmh, cookies