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 Date: Wed, 28 Nov 2001 08:16:27 +0100 From: Corinna Vinschen To: cygwin-apps AT cygwin DOT com Subject: Re: 0 vs NULL - a note Message-ID: <20011128081627.W14975@cygbert.vinschen.de> Reply-To: cygwin-apps AT cygwin DOT com Mail-Followup-To: cygwin-apps AT cygwin DOT com 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1006912722.712.2.camel@lifelesswks>; from robert.collins@itdomain.com.au on Wed, Nov 28, 2001 at 12:58:41PM +1100 On Wed, Nov 28, 2001 at 12:58:41PM +1100, Robert Collins wrote: > This is simply a FYI for those interested. > > http://www.multimania.com/pierret/cpp212.htm > may precende the standard ratification as it still tests for new > returning 0. It makes an excellent point about NULL vs 0 in assignments. > > Anyway, for clarity: Both 0 and NULL are acceptable in setup.exe. And another note: if (ptr) and if (!ptr) avoid all confusion about 0 vs. NULL. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.