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 5638
- From: Bruce Stephens <B.Stephens@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: 0 vs. NULL (RE: Worrisome warnings after recent patches)
- Date: 04 Mar 1999 10:35:16 +0000
- In-reply-to: Bernd Eggink's message of "Thu, 04 Mar 1999 09:42:52 +0100"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <000901be6619$6f8a6930$21c9ca95@xxxxxxxxxxxxxxx> <36DE478C.2F17DA58@xxxxxxxxxxxxxx>
- Sender: B.Stephens@xxxxxxxxx
Bernd Eggink <eggink@xxxxxxxxxxxxxx> writes:
> Andrej Borsenkow wrote:
> > 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.
There's an issue with arguments to functions which don't have
prototypes, but apart from that, the literal 0 as a pointer should be
fine in C.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author