Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ryao
51 days ago
|
parent
|
context
|
favorite
| on:
Making memcpy(NULL, NULL, 0) well-defined
That is a side effect of passing the pointer as a function parameter marked nonnull. It implies that the pointer is nonnull and any NULL checks against it can be removed. Pass it to a normal function and you will not see the NULL check removed.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: