Why 'void *' is useful
Henry Spencer
henry at utzoo.UUCP
Sat Jul 14 03:25:15 AEST 1984
The trouble with using "caddr_t" to do the "void *" job is that "caddr_t"
is just a human convenience. Depending on how you do it, "caddr_t" is
either a #defined symbol or a typedef; neither is any more than an
abbreviation for some other type. Strict type checking will expand the
abbreviation and then complain about the expansion.
I suppose one could make "caddr_t" a magic keyword, but using "void *"
is simpler and doesn't introduce a new keyword.
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!henry
More information about the Comp.lang.c
mailing list