Lint, (void *) and alignment

tp at ndm20 tp at ndm20
Sat Aug 10 06:58:00 AEST 1985


(void *) is note neccessarily the same as (char *).
If the machine is word addresseable, a (char *) might
not be aligned properly to point to an int, double, etc.
(void *) must be (char *) with the additional restriction
that the object pointed to be appropriately aligned for any
data type. 

Terry Poot
Nathan D. Maier Consulting Engineers
(214)739-4741
Usenet: ...!{allegra|ihnp4}!convex!smu!ndm20!tp
CSNET:  ndm20!tp at smu
ARPA:   ndm20!tp%smu at csnet-relay.ARPA



More information about the Comp.lang.c mailing list