• 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...
  • Can pointer types be cast?
    Here is my problem, i have several simmilar structue definitions (containers for messages) struct FIRST{ unsigned char Word_Pos[8] unsigned char Data[8] unsigned char Msg_Len }; struct FIRST...
  • cast?
    Does anybody know, how one have to cast an operation correctly? And is it necessary to tell the compiler that a constant is unsined long #define dword unsigned long unsigned char ucH; //hours unsigned...
  • Casting Char Pointers to Other Data Types
    I just found an insidious and disconcerting characteristic of the uVision3 ARM compiler V3.12a. I have inherited C code to migrate to the ARM processor. This C code uses unsigned char pointers quite liberally...
  • POINTER type cast probelm due to alignment
    HI Iam having problem when pointer to the location is not on a 4 byte boundary (divisible by 4). when i call the function and pass arguments, i see that inside the called function, it points to an aligned...