I remember a big discussion happening on LKML on this topic (i.e., NULL vs 0) a couple of months back. It must be still available in their mail archives. Try googling for "Use NULL instead of integer 0" & you must find it. Must say it was a pretty heated discussion. Dont know what the outcome was. I stopped following it after sometime. -- Kishore A K On Wed, 17 Nov 2004 22:02:46 -0800, Nish Aravamudan <nish.aravamudan@xxxxxxxxx> wrote: > On Thu, 18 Nov 2004 10:44:44 +0530, Kishore A K <kishoreak@xxxxxxxxx> wrote: > > NULL == 0 in all currently known architectures while coding in > > C. And I think NULL == (void *)0 if you code in C++. Infact in > > many places in the linux kernel source NULL & 0 have been used > > interchangably. > > I suppose if it's consistent in every file, it probably isn't a big > deal, but it seems like it might be a good idea to be consistent > across the kernel. CodingStyle has no recommendation on this > particular issue. What do people think? Kishore, could you provide a > specific example? > > -Nish > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/