www.delorie.com/archives/browse.cgi | search |
Sender: | nate AT cartsys DOT com |
Message-ID: | <360437F1.C769F295@cartsys.com> |
Date: | Sat, 19 Sep 1998 16:02:10 -0700 |
From: | Nate Eldredge <nate AT cartsys DOT com> |
MIME-Version: | 1.0 |
To: | Matt <matt DOT b AT clear DOT net DOT nz> |
CC: | djgpp AT delorie DOT com |
Subject: | Re: __attribute__((packed)); |
References: | <01bde40e$d34a9f40$188b4fd1 AT spock> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |