• 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...
  • Problem with more member in a structure
    Hi there, I'm using STM32F103 with Keil ver 4.72 I defined a structure like this: typedef struct { uint16_t X; uint16_t Y; uint16_t Width; uint16_t Height; uint16_t BackColor; uint16_t TextColor;...
  • typedef with a member "pointer to itself"
    Hello forum I've a c progamming question: I want to place a function pointer into a typedef with a function parameter "pointer to the typedef itself": typedef struct pExampleStructTypdef {...
  • Problem with updating/reading Structure pointer member using functions
    Hi everyone, I want to update a structure member using a function and read it in other functions; anyone helpp? typedef struct { uint32_t Update; }StructUpdate; StructUpdate Objstr, *Objstrpoint...
  • defining an array of pointers to structure members generates compiler error
    espression must have a constant value i have a static struct variable having struct members and have to access this members on change of a count. so instead of using a switch case statement to load...