packed - It must be specified at the time of the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef __LIB_PACKED_H #define __LIB_PACKED_H /* The "packed" attribute, when applied to a structure, prevents GCC from inserting padding bytes between or after structure members.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: It must be specified at the time of the structure's definition, normally just after the closing brace. */ #define PACKED __attribute__ ((packed)) #endif /* lib/packed.h */...
View Full Document

Ask a homework question - tutors are online