Comment by cakealert
IMO you should assert it's not null. There should never be a circumstance where you pass a null pointer to a function.
IMO you should assert it's not null. There should never be a circumstance where you pass a null pointer to a function.
ISO C allows:
and others. More examples in POSIX and other APIs: Reality just ran over your opinion, oops!