Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!dual!lll-crg!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn) Newsgroups: net.lang.c Subject: Re: if (p), where p is a pointer Message-ID: <1456@brl-tgr.ARPA> Date: Thu, 12-Sep-85 20:44:18 EDT Article-I.D.: brl-tgr.1456 Posted: Thu Sep 12 20:44:18 1985 Date-Received: Sun, 15-Sep-85 11:48:41 EDT References: <118@mit-hector.UUCP> Organization: Ballistic Research Lab Lines: 12 > if (ptr) is perfectly okay > if (ptr != NULL) is also okay and may be better style NULL is #defined in and other places as 0. Do not confuse NULL (or its macro expansion, 0) with a null pointer. NULL is an integer constant (after macro expansion). Are you confused yet?