• 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 {...
  • 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...
  • Reassigning pointer to a structure
    I'm having trouble with reassigning a pointer to a structure. Given the 2 files, structure.h and structure.c listed below: structures.h ------------ struct device_struct { unsigned char address;...
  • Pointer to NULL structure
    I have a structure defined as typedef struct example{ int a; char b; example c; }STRUCT_EG; and I declare a pointer to this structure as STRUCT_EG *Struct_ptr To check whether the pointer...
  • Accessing structure pointer members
    Hi all, For some reason, I cannot access the structure members if I use struct pointers. eg: typedef struct { int member1; }structure_t; structure_t structure, *structure_ptr; int...