Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
0 vs. NULL (RE: Worrisome warnings after recent patches)
- X-seq: zsh-workers 5632
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: 0 vs. NULL (RE: Worrisome warnings after recent patches)
- Date: Thu, 4 Mar 1999 11:31:44 +0300
- Importance: Normal
- In-reply-to: <199903040750.IAA01987@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> + 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.
I mention it, because I just recently have seen quite a number of bug
reports, that rsulted exactly from using something like NULL for this.
Just a reminder ...
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author