AnsweredAssumed Answered

packed structs

Question asked by Hfuhrhurr on May 16, 2013
Latest reply on May 19, 2013 by Hfuhrhurr

Hi all,


I just ran into an issue, I haven't thought of before, since I considered this as  a standard feature.


It seems not to be possible to use a struct like

typedef struct t
     char a;
     unsigned short b;
     unsigned int c;
     float d;
} t;


and pack it in a way that the total size of the struct will be 11 bytes.


Are there any ideas how to deal with this?


Best regards,