lkml.org 
[lkml]   [2003]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NULL. Again. (was Re: [PATCH] 2.4.22pre10: {,un}likely_p())
Chip Salzenberg wrote:
> According to Jamie Lokier:
> > Not just K&R. These are different because of varargs:
> > printf ("%p", NULL);
> > printf ("%p", 0);
>
> *SIGH* I thought incorrect folk wisdom about NULL and zero and pointer
> conversions had long since died out. More fool I. Please, *please*,
> _no_one_else_ argue about NULL/zero/false etc. until after reading this:
>
> ===[[ http://www.eskimo.com/~scs/C-faq/s5.html ]]===

Thanks Chip; I am much enlightened. That is a fine URL.

To onlookers: neither of those printf statements is portable :)

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.062 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site