Karthik Agarwal

Karthik Agarwal

  • NA
  • 748
  • 266.1k

Can any one tell what does this below code mean?

Dec 1 2011 10:51 AM
I have a macro as follows

#define T_412_A 0xB4C
typedef unsigned long   UINT32;

Now i am passing this value to another function as follows:
interface((void *)T_412_A);// 1. what i am sending here either value 0xB4C or address of that

And i am receiving the same in another function as follows and sending the same to another function as follows:
UINT32 interface(void * dynamic_data_vp)//2. what i have received here
{
        decode_bit_format((void *)dynamic_data_vp);//what i am sending here address or value
}

decode_bit_format(void * text_data_vp)//what i am receiving here
{
        My actual intention is to get the original value 0xB4C here if i am doing anything wrong correct it so that i can get the value here which is 0xB4C
}

This is pure C code answer required ASAP.

Answers (1)