Re:The Ten Commandments for C Programmers (Annotated Edition)
by pornel on Saturday November 06, 2010 @01:58PM
(#1877373)
That doesn't work if you expect struct or array at 0.
IMHO a better solution is to have a type system that has non-NULLable types, and/or use language that inserts NULL checks automatically (and optimizes them away where they're redundant).
IMHO a better solution is to have a type system that has non-NULLable types, and/or use language that inserts NULL checks automatically (and optimizes them away where they're redundant).