🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49776

Re: packing structures

#49776
From: Fergus Henderson
Date: Wed, 08 Dec 1993 17:44
15 lines
1283 bytes
DLetcher@scout-po.biz.uiowa.edu writes:

>     I'm using g++ on an Intel 486 with UnixWare.  How can I pack my data 
>     structures to get rid of the hidden spaces caused by field alignment?

Look up "align" in the index of the GNU C manual.

>     I'm trying to share information with an existing DOS application.  It 
>     would be easier to read data in blocks than to try and parse 
>     individual fields from a buffer.

It would also be less portable.

-- 
Fergus Henderson                     fjh@munta.cs.mu.OZ.AU
Technical Details
Message-ID: <9334304.8282@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!cs.tu-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
References: <9312062250.AA03125@argos.weeg.uiowa.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,a76275a1248dafc9
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-09 09:26:36 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!cs.tu-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: packing structures
Message-ID: <9334304.8282@mulga.cs.mu.OZ.AU>
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
References: <9312062250.AA03125@argos.weeg.uiowa.edu>
Distribution: gnu
Date: Wed, 8 Dec 1993 17:44:33 GMT
Lines: 15