Most people use pointers like this...
if ( p != NULL ) { DoWhateverWithP(); }
However, if the pointer is null for whatever reason, the functi
I think I've seen more of. This way you don't proceed if you know it's going to blow up anyway.
if (NULL == p) { goto FunctionExit; // or some other common label to exit the function. }