Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 0 vs. NULL (RE: Worrisome warnings after recent patches)
- X-seq: zsh-workers 5633
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxx>
- To: Andrej Borsenkow <borsenkow.msk@xxxxxx>
- Subject: Re: 0 vs. NULL (RE: Worrisome warnings after recent patches)
- Date: Thu, 04 Mar 1999 09:42:52 +0100
- Cc: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: RRZ Uni Hamburg
- References: <000901be6619$6f8a6930$21c9ca95@xxxxxxxxxxxxxxx>
- Sender: rz2a022@xxxxxxxxxxxxxx
Andrej Borsenkow wrote:
>
> > + Cline to, tn = NULL;
>
> What is the point of using NULL to initialize null pointer. The only
> portable and official way is to use `0'(zero), that is garanteed to be
> converted to whatever representation null pointer has on a given system.
No, this applies to C++ only, not to C. In C you should use the NULL
macro or (void*)0.
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@xxxxxxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author