caddr_t or void *

Chuck Swiger cswiger at mac.com
Thu Aug 10 13:56:55 UTC 2006


Only OpenSource wrote:
> caddr_t which is a typedef for char* seems to be used quite often in
> the kernel code.  Would void* be preferable to caddr_t ?

No.  Having to cast (void *)'s to the actual data type every time you 
dereference them would be highly annoying.

-- 
-Chuck


More information about the freebsd-questions mailing list