On Tue, Mar 13, 2007 at 06:05:45PM +0000, Christos Zoulas wrote:
I see. "char *" is not a generic pointer, but it's indistinguishable
from a generic pointer in the cases that I've used caddr_t. And better
for those uses than void * since you left out the "that it's safe to do
byte-wise arithmetic on" qualifier from my question...
It does look like caddr_t was used in a variety of ways. It still seems
that it would make sense to have a standard type for a pointer that you
can do byte-wise arithmetic with. This might prevent people from casting
pointers to integers or accidentally using pointers to the wrong type or
(in the best case?) just using a mix of char * or u_int8_t * or int8_t *
or unsigned char * or uchar *.
I appreciate your quick answer.
-allen
--
Allen Briggs | http://www.ninthwonder.com/~briggs/ | briggs@ninthwonder.com