Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!rbutterworth From: rbutterworth@watmath.UUCP (Ray Butterworth) Newsgroups: net.lang.c Subject: Re: Yet another ALIGN idea. (some Message-ID: <1511@watmath.UUCP> Date: Fri, 11-Jul-86 08:34:23 EDT Article-I.D.: watmath.1511 Posted: Fri Jul 11 08:34:23 1986 Date-Received: Sat, 12-Jul-86 04:11:34 EDT References: <1038@ttrdc.UUCP> <2600066@ccvaxa> Organization: U of Waterloo, Ontario Lines: 7 > Since an alignment constant doesn't necessarily work, how about an > alignmentof(object) operator, analagous to sizeof()? At least that'll work > on all architectures that have alignments based on multiples. An "alignof(type)" operator is already required by X3J11 (although they don't seem to have realized this yet) in order to implement their va_arg(ap,type) macro.