Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Subject: Re: 0 vs NULL - a note From: Robert Collins To: cygwin-apps AT cygwin DOT com In-Reply-To: <20011128081627.W14975@cygbert.vinschen.de> References: <20011127230925 DOT GA5830 AT redhat DOT com> <000001c1779c$e1fe2fa0$2101a8c0 AT NOMAD> <20011127235226 DOT GA6537 AT redhat DOT com> <1006906033 DOT 2048 DOT 23 DOT camel AT lifelesswks> <20011128002122 DOT GA6919 AT redhat DOT com> <1006907495 DOT 2048 DOT 25 DOT camel AT lifelesswks> <20011128005414 DOT GA7118 AT redhat DOT com> <1006910727 DOT 637 DOT 0 DOT camel AT lifelesswks> <1006912722 DOT 712 DOT 2 DOT camel AT lifelesswks> <20011128081627 DOT W14975 AT cygbert DOT vinschen DOT de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 28 Nov 2001 18:44:33 +1100 Message-Id: <1006933475.712.15.camel@lifelesswks> Mime-Version: 1.0 X-OriginalArrivalTime: 28 Nov 2001 07:46:01.0571 (UTC) FILETIME=[B9BE2330:01C177E0] On Wed, 2001-11-28 at 18:16, Corinna Vinschen wrote: > And another note: > > if (ptr) > > and > > if (!ptr) > > avoid all confusion about 0 vs. NULL. > Not quite, it only solves for comparisons, not for assignment/initialisation. Rob