Re: using literal zero for NULL



* Behdad Esfahbod <behdad cs toronto edu> schrieb:
> On Wed, 22 Mar 2006, Alan M. Evans wrote:
> 
> > In fact, an unadorned zero works perfectly well in all cases except
> > unprototyped function parameters. (This thread started with the error of
> > passing zero in varargs, which are technically unprototyped even when
> > the function is prototyped.)
> 
> To reword: In fact zero works in all valid cases except for those
> valid cases that it doesn't.

There's a lot of esoteric out there, which somehow seems to work,
until ... the moon and the sun stand in line and evrything falls
apart ... autoconf is such an candidate ...

IMHO using 0 instead of NULL for pointers should be forbidden.
Bad style, very very bad style.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact metux de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]