3 ms·
An article on C structure packing without any mention of __attribute__((__packed__))?? meh.
by zeusk 10y ago
An article on C structure packing without any mention of __attribute__((__packed__))?? meh.
- khedoros 10y ago> GCC and clang have an attributepacked you can attach to individual structure declarations; GCC has an -fpack-struct option for entire compilations. He mentioned it in passing (and without proper syntax) in section 11.