Quoting John Marshall ([EMAIL PROTECTED]):

> Nope.  I expected I'd regret that example :-).  NULL is by definition 0,
> so these two are equivalent.  But a null pointer might not be all-bits-
> zero, so what I had in mind was that "memset (&struct1, 0, sizeof struct1)"
> does zero any integer fields, but does not portably set any pointer
> fields to NULL.

Aha!  This is exactly the sort of example I was looking for, thanks.
Fortunately (in my case), it's not something I'd be inclined to do.  I
might well go and have a poke about in the C FAQ, too.  I don't write C
anywhere near as much now as I used to do, say, ten to fifteen years back,
so there are probably a few other things I could do with reminding about.

James

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to