On 07 May 2006 Clemens Kirchgatterer <clemens@xxxxxxxx> wrote: > s.huelswitt@xxxxxx (Stefan Huelswitt) wrote: > >> Well, normaly NULL is defined as (void *)0, which is a pointer... > > only in C. in C++ NULL == 0. > > stddef.h: > > #ifndef __cplusplus > #define NULL ((void *)0) > #else /* C++ */ > #define NULL 0 This cannot be true. If NULL == 0 for C++ it should make no difference, but gcc4 complains with 0 but not with NULL. So there is a differnce. Regards. -- Stefan Huelswitt s.huelswitt@xxxxxx | http://www.muempf.de/