• Designated initialiser of struct element in C51
    Why designated initialisation not working in C51? How to initialise structure lement? struct fixed { unsigned char a; unsigned char b; }; code struct fixed flash = {.a=0x2, .b=0x3}; Above...
  • Designated initialiser of struct element in C51
    Why designated initialisation not working in C51? How to initialise structure lement? struct fixed { unsigned char a; unsigned char b; }; code struct fixed flash = {.a=0x2, .b=0x3}; Above...
  • 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...
  • 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...
  • Copying Structs
    Hi all, I need some help about assigning two structures. The simple Function void CopyStruct(struct A *sSrc, struct A *sDst) { *sDst = *sSrc; } is translated to ; Variable 'sDst' assigned...