• constant bit-fields in struct
    Hi All,, How can i declare constant bit fields in a struct ?? struct mystruct{ unsigned char xx:6; unsigned char yy:2; }mystruct; Let us say i want mystruct.yy to be a constant 00, how can...
  • constant bit-fields in struct
    Hi All,, How can i declare constant bit fields in a struct ?? struct mystruct{ unsigned char xx:6; unsigned char yy:2; }mystruct; Let us say i want mystruct.yy to be a constant 00, how can...
  • Problem using sizeof() with element of struct
    Hi all! I am experiencing the following problem: sizeof(EDA.stPARAM) returns 0x80 with CA.exe V2.41 which in my opinion is the correct result, but with CA.exe V2.50a it returns 0x82. Can somebody...
  • Problem using sizeof() with element of struct
    Hi all! I am experiencing the following problem: sizeof(EDA.stPARAM) returns 0x80 with CA.exe V2.41 which in my opinion is the correct result, but with CA.exe V2.50a it returns 0x82. Can somebody...
  • sizeof struct
    I have a struct with 2 members of type double and 1 member of type long. The sizeof() function returns 24. Normaly it should be 20(2*8bytes for the doubles and 4 bytes for the long). When I add...