[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: NULL pointers.

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-10-14 03:49:31 CEST

On Mon, 2003-10-13 at 21:11, Jack Repenning wrote:
> > struct some_complex_struct __tmp = { 0 };
>
> Doesn't this fail for the case where the _first_ field of
> some_complex_struct is a pointer, and the local architecture does
> something inane with NULL?

No, because zero (the constant) implicitly casted to a pointer type is
always the null pointer.

(But I think the answer is that we don't want to solve this problem.
Still, an interesting trick.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 14 03:50:26 2003

This is an archived mail posted to the Subversion Dev mailing list.