Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site ndm20 Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!dual!qantel!ihnp4!inuxc!pur-ee!uiucdcs!convex!ndm20!tp From: tp@ndm20 Newsgroups: net.lang.c Subject: Re: Lint, (void *) and alignment Message-ID: <3400002@ndm20> Date: Fri, 9-Aug-85 16:58:00 EDT Article-I.D.: ndm20.3400002 Posted: Fri Aug 9 16:58:00 1985 Date-Received: Sun, 18-Aug-85 21:31:47 EDT References: <250@brl-tgr.ARPA> Lines: 14 Nf-ID: #R:brl-tgr.ARPA:-25000:ndm20:3400002:000:463 Nf-From: ndm20!tp Aug 9 15:58:00 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@smu ARPA: ndm20!tp%smu@csnet-relay.ARPA