Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!husc6!cmcl2!phri!marob!daveh From: daveh@marob.MASA.COM (Dave Hammond) Newsgroups: comp.lang.c Subject: Suitably aligned pointers Message-ID: <345@marob.MASA.COM> Date: 14 Oct 88 14:03:16 GMT Reply-To: daveh@marob.UUCP (Dave Hammond) Organization: ESCC, New York City Lines: 12 We use a pretty basic set of memory management routines which allocate large hunks of memory and parcel it out as requested, saving malloc the headache of managing huge lists of small buffers. The problem is the routines don't return a `suitably aligned' pointer, so the accuracy of casting the return to other than char * is in doubt. Can someone explain the technique used to suitably align a pointer ? Dave Hammond UUCP: ...!uunet!masa.com!{marob,dsix2}!daveh DOMAIN: daveh@marob.masa.com ----------------------------------------------------------------------------