style question - testing pointers for NULL

Mark Atwood fallenpegasus at gmail.com
Fri Jun 8 06:06:52 UTC 2018


Use "if (NULL != foo)"

The second is OK, but convert them as you find them, please.

On Thu, Jun 7, 2018 at 8:51 PM Hal Murray via devel <devel at ntpsec.org>
wrote:

>
> Should I write
>   if (NULL != foo) ...
> or is
>   if (foo) ...
> OK?
>
>
> --
> These are my opinions.  I hate spam.
>
>
>
> _______________________________________________
> devel mailing list
> devel at ntpsec.org
> http://lists.ntpsec.org/mailman/listinfo/devel
>
-- 

Mark Atwood
http://about.me/markatwood
+1-206-604-2198
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180607/faeee333/attachment.html>


More information about the devel mailing list