NULL and zeros
- From: Yevgen Muntyan <muntyan.removethis@xxxxxxxx>
- Date: Tue, 03 Oct 2006 02:51:02 GMT
Hey,
Are there not highly specialized and still existing and used platforms
where NULL is not a sequence of zeros, so that "char *a = NULL;" and
"char *a; memset (&a, 0, sizeof (a));" are not equivalent?
In other words, do I care about possible difference between NULL and
zero-filled pointer if e.g. I assume the target platform can run X
or it is Windows?
Thanks,
Yevgen
.
- Follow-Ups:
- Re: NULL and zeros
- From: Frederick Gotham
- Re: NULL and zeros
- From: Ancient_Hacker
- Re: NULL and zeros
- From: Cong Wang
- Re: NULL and zeros
- From: Eric Sosman
- Re: NULL and zeros
- Prev by Date: Re: determine last line of file entries
- Next by Date: Re: NULL and zeros
- Previous by thread: Re: scanf(), ungetc() behaviour.
- Next by thread: Re: NULL and zeros
- Index(es):
Relevant Pages
|