Sender: nate AT cartsys DOT com Message-ID: <360437F1.C769F295@cartsys.com> Date: Sat, 19 Sep 1998 16:02:10 -0700 From: Nate Eldredge MIME-Version: 1.0 To: Matt CC: djgpp AT delorie DOT com Subject: Re: __attribute__((packed)); References: <01bde40e$d34a9f40$188b4fd1 AT spock> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Matt wrote: > > Hi there. > > Can somebody please tell me what the keyword(s?) > > __attribute__((packed)); > > achieve in a struct definition?? Prevents the compiler from padding (for speed) the members of the structure. This is normally useful only if you must conform to some external data structure or if memory is very tight. -- Nate Eldredge nate AT cartsys DOT com