• structure in keil
    dear sir/madam(s), I define simple structure in c(keil)for at89c52 mcu as bellow. struct MODE { YEAR:5; MONTH:5 }; struct MODE RUN,NON_RUN_MODE; My question is will my veriable RUN.YEAR...
  • Structures
    In my application I have a number of different structure variables. In all cases the members are unsigned char. I pass the structure to a function via a pointer where the various structures may have...
  • Problem with structures containing structures
    Hello, I have a problem with the following structure declaration: typedef struct { HDEntriesTYPE HDWindowStartSTRUCT; } actualPlayerStatusTYPE; typedef struct { unsigned long StartClusterUL;...
  • Offset to a member of a structure (relative to that structure)
    I have a structure I would like to compute the offset to members within. I've attempted this numerous ways all of which fail to generate a CONSTANT offset instead the compiler insists and create...
  • structures
    so lots of threads on this forum say you must not care about how the compiler puts things into structures with alignment and padding and stuff then we look at example code with structures used to...