That and MinGW defines NULL as 0 if C++ and not void(*) #ifndef NULL #ifdef __cplusplus #ifndef _WIN64 #define NULL 0 #else #define NULL 0LL #endif /* W64 */ #else #define NULL ((void *)0) #endif #endif
On Thu, Aug 31, 2017 at 7:34 PM, Keith Medcalf <kmedc...@dessus.com> wrote: > > Ah. Ok. So it prints the pointer value. Thanks. > > > --- > The fact that there's a Highway to Hell but only a Stairway to Heaven says > a lot about anticipated traffic volume. > > > >-----Original Message----- > >From: sqlite-users [mailto:sqlite-users- > >boun...@mailinglists.sqlite.org] On Behalf Of Igor Tandetnik > >Sent: Thursday, 31 August, 2017 20:32 > >To: sqlite-users@mailinglists.sqlite.org > >Subject: Re: [sqlite] Yes, NULL is zero, is it? > > > >On 8/31/2017 10:20 PM, Keith Medcalf wrote: > >> Why do you think that a pointer to an arbitrary data block can be > >sent to cout? > > > >Because cout provides operator<<(void*) > >-- > >Igor Tandetnik > > > >_______________________________________________ > >sqlite-users mailing list > >sqlite-users@mailinglists.sqlite.org > >http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > > > > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users