• void pointer to struct pointer cast
    I declared a void pointer void *ptr; and a typedef struct named testStructure, with a member 'unsigned int a'. Now I will cast this pointer to a struct pointer: ptr=(testStructure*)malloc...
  • Pointers
    Need a clarification. I want to define two poiners. One pointing to an area in XRAM and the other within CODE memory. I further want both of these pointers to be stored in XRAM. unsigned char...
  • pointer of pointer type??
    what is different form, follow as: (1)code XBYTE *AA[]={...}; (2)code void (*BB[])(void)={...};
  • Initialize constant pointer to pointer
    const int an_object = 0; const int * const MC_buf = &an_object; const int * buffer = MC_buf; This code was original using structs, but it is simplified in this example. It doesn't matter where...
  • 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...