Code problem

S

Sikandar

The code is as follows


unsigned short * lpIntEnable[NUM_ITC_BANKS] =
{
(LPREG)ITC_INTENABLE_REG(0) , //These two macros give some
register addresses
(LPREG)ITC_INTENABLE_REG(1)
};


u_int32 uEnable;
uEnable = *lpIntEnable[0x00];


My question is what is being assigned to UEnable .Is it a double ptr or
wat please explain


Regards in anticipation of your replies,

Sikandar
 
M

Morris Dovey

Sikandar (in (e-mail address removed))
said:

| The code is as follows
|
|
| unsigned short * lpIntEnable[NUM_ITC_BANKS] =
| {
| (LPREG)ITC_INTENABLE_REG(0) , //These two macros give some
| register addresses
| (LPREG)ITC_INTENABLE_REG(1)
| };
|
| u_int32 uEnable;
| uEnable = *lpIntEnable[0x00];
|
|
| My question is what is being assigned to UEnable .Is it a double
| ptr or wat please explain

lpIntEnable is an array of NUM_ITC_BANKS pointers to unsigned short.
uEnable is assigned whatever unsigned short value (promoted to a
u_int32) that the first element of lpIntEnable points to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,184
Messages
2,570,979
Members
47,579
Latest member
CharaS3188

Latest Threads

Top