Article View: comp.sys.ibm.pc
Article #42683Re: TC bug in sizeof()?
From: Mel Lau
Date: Fri, 16 Feb 1990 17:52
Date: Fri, 16 Feb 1990 17:52
14 lines
720 bytes
720 bytes
In MicroSoft C there is a pack option in the complier /Zp maybe
there is one for your complier ?.
Also you can play some tricks like declaring a array of chars
and then casting as your struck type when accessing the struc members.
char foo[10];
struct me *t;
t = (struct me *) foo;
etc..
Mel
Technical Details
Message-ID:
<1640062@hpspcoi.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!Teknowledge.COM!unix!hplabs!hp-ses!hpcuhb!hpda!hpcuhc!hpspcoi!mlauReferences:
<1519@maytag.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!Teknowledge.COM!unix!hplabs!hp-ses!hpcuhb!hpda!hpcuhc!hpspcoi!mlau From: mlau@hpspcoi.HP.COM (Mel Lau) Newsgroups: comp.sys.ibm.pc Subject: Re: TC bug in sizeof()? Message-ID: <1640062@hpspcoi.HP.COM> Date: 16 Feb 90 17:52:03 GMT References: <1519@maytag.waterloo.edu> Organization: HP PCG, Sunnyvale CA Lines: 14