• Empty arrays in nested structures
    I am porting code from ew and gcc to keil uvision arm compiler (Arm compiler 5.06 update 1 build 61). Both ew and gcc allow me to the following: struct header { uint32_t chksum; uint8_t id;...
  • Array of pointers to structures
    I am getting an error 199 "left side of '->' requires a struct/union pointer. I'm not entirely sure why. Maybe it's obvious, but I've been looking at this code for too long: struct test_struct {...
  • accessing array of ptr in the structures
    i've declared a structure as typedef struct elem { int a; void *b[20]; }e; how can i access the array of (void) pointer inside a structure??? e.b ??? - is this correct manner of accessing...
  • Pointer to array in a structure?
    hello, i have a simple little structure like this unsigned char index; struct tag { unsigned char a[20]; unsigned char b[20]; unsigned char c }; then i declare a pointer like this...
  • Relocating a structure to external memory
    I seem to have an issue when trying to define a structure to exsist at an external memory location. the struct overlays registers in an external chip communicating through through the EMI interface....