Article View: comp.std.c
Article #960Re: sizeof on a word-oriented machine
From: Doug Gwyn
Date: Sun, 19 Nov 1989 01:26
Date: Sun, 19 Nov 1989 01:26
9 lines
908 bytes
908 bytes
In article <12570032@hpclwjm.HP.COM> walter@hpclwjm.HP.COM (Walter Murray) writes: >It seems to me the only conclusion is that the dpANS guarantees that >sizeof(x)==37. Yes, and I know for a fact from discussion with several "principal members" of X3J11 that it was intended that the standard guarantee a macro like the following to work for all conforming implementations: #define Elements( a ) (sizeof a / sizeof a[0])
Technical Details
Message-ID:
<11649@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!adm!smoke!gwynReferences:
<11135@riks.csl.sony.co.jp> <12570032@hpclwjm.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: sizeof on a word-oriented machine Message-ID: <11649@smoke.BRL.MIL> Date: 19 Nov 89 01:26:30 GMT Article-I.D.: smoke.11649 References: <11135@riks.csl.sony.co.jp> <12570032@hpclwjm.HP.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9