On Wed, 27 May 1998, Glynn Clements wrote: > >Andrea Arcangeli wrote: > >> > But for testing null pointers, I use `!'. In this context, it seems >> >> BAD. I worked in envinronments where NULL is ((void *)-1UL). > >That's _really bad_. ANSI C requires stdio.h to define NULL as being >equivalent to zero. Hmm, this is true in user land. Is it still true in kernel (not Linux) developement? >> If you use ! to check for a NULL pointer you make your code not >> portable. > >Using ! to check for a NULL pointer is entirely portable. If so excuse me, but for safe I will continue to use == NULL instead of ! ;-). Andrea[s] Arcangeli
- Hey, could someone critique a little app I did? R. Brock Lynn
- Hey, could someone critique a little app I d... R. Brock Lynn
- Re: Hey, could someone critique a little... Jakob Andreas Baerentzen
- Re: Hey, could someone critique a li... CyberPeasant
- Re: Hey, could someone critique a little... Glynn Clements
- Re: Hey, could someone critique a li... Andrea Arcangeli
- Re: Hey, could someone critique ... Pete Ryland
- Re: Hey, could someone crit... Glynn Clements
- Re: Hey, could someone ... Andrea Arcangeli
- Re: Hey, could some... Glynn Clements
- Re: Hey, could some... Andrea Arcangeli
- Re: Hey, could some... Pete Ryland
- Re: Hey, could some... Andrea Arcangeli
- Re: Hey, could some... Pete Ryland
- what if I redefine ... Andrea Arcangeli
- Re: what if I redef... Glynn Clements
- Re: what if I redef... Andrea Arcangeli
- Re: what if I redef... Glynn Clements
- Re: what if I redef... Pete Ryland
- Re: Hey, could some... Andrea Arcangeli
- Re: Hey, could some... holotko