• Pointer to Structure with pointer.
    I'm having a problem with a pointer to struct. I'm working with the PC16552 UART, (it has 2 UARTs), and I created a struct for each UART like this: typedef struct _uart { uchar xdata *ucBuffer; uchar...
  • 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...
  • 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...