• address of struct member
    The following code compiles fine with C V7.20 struct { struct { char a; } t; } b; void main(void) { b.t.a=0; (&b)->t.a=0; (&(b.t))->a=0; (*) } and gives an error with V8.05a for line...
  • Address of an element of a struct
    I have this code: typedef struct _DLL_struct { unsigned char DLL_type; unsigned char DLL_lenght; unsigned char DLL_data_begin; } DLL_struct; unsigned char xdata FskRxBuf[MAX_SIZE_BUFFER]; ...
  • Array of struct within struct
    Has anyone defined an array of struct inside another struct with C51? I can find no reference document prohibiting it. Yet, when I try to compile following fragment: #include <stdio.h> struct...
  • Standard Struct?
    Having some problems working with a struct typedef. In RTX51, one of the system functions takes as an argument a pointer to a struct: //function prototype signed char os_check_mailboxes (t_rtx_allmbxtab...
  • The length of struct
    Hi, I define a struct like below: typedef struct { unsigned type :6; unsigned delete :1; unsigned mask :1; }UnitType; I think the length of this struct is 1 byte, but to my surprise,...