[prev in list] [next in list] [prev in thread] [next in thread]
List: ethereal-dev
Subject: Re: [ethereal-dev] Patches containing assert statements (& not much
From: Guy Harris <guy () netapp ! com>
Date: 2000-04-19 22:02:20
[Download RAW message or body]
> >Why initialize them to a value with all bits set? NULL is the right
> >value to use here - it's the official "distinguished value" for pointers
> >in C and C++.
>
> In preference to initialising them to an indeterminate bit pattern! I use
> 0 to indicate that pointer has been used and freed. I thought that I was
> following the model in the developer document
If the developer document suggests using -1 for *pointers*, it is in
error, and should be fixed.
If it only suggests using it for integral values, the equivalent notion
for pointers is a null pointer.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic