Tutorial by Examples

packed is a variable attribute that is used with structures and unions in order to minimize the memory requirements. #include <stdio.h> struct foo { int a; char c; }; struct __attribute__((__packed__))foo_packed { int a; char c; }; int main() { printf("...

Page 1 of 1