The packed Variable Attribute

Linux The variable attribute packed allows you to specify that a structure member or bit field structure member should have the smallest possible alignment: one byte for a member and one bit for a bit field member, unless a larger value is specified with the aligned variable attribute.

The syntax is as follows:

>>-__attribute__--((--+-packed-----+--))-----------------------><
                      '-__packed__-'
 
 

Related References

IBM Copyright 2003