Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rwmj
on Dec 30, 2018
|
parent
|
context
|
favorite
| on:
A little-known C feature: Static array indices in ...
GCC has an extension __attribute__((nonnull)) which is probably better if you want to ensure that NULL is not passed as a function parameter.
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attribute...
According to this document it also allows the compiler to make extra optimizations:
http://rachid.koucha.free.fr/tech_corner/nonnull_gcc_attribu...
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: