/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Some bits on malloc(0) in C being allowed to return NULL
(utcc.utoronto.ca)
48 points
ingve
| 1 comments |
25 Jun 25 06:15 UTC
|
HN request time: 0.206s
|
source
1.
tptacek
◴[
26 Jun 25 18:51 UTC
]
No.
44390201
[source]
▶
>>44374114 (OP)
#
I get the complexity of the standards issue here, but if you cared about this, wouldn't you just wrap malloc with something trivial that provided the semantic you wanted to depend on (NULL or some sentinel pointer).
ID:
GO
↑