niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » C
Code problem
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Sikandar
*nix forums beginner


Joined: 21 Jul 2006
Posts: 3

PostPosted: Fri Jul 21, 2006 4:21 am    Post subject: Code problem Reply with quote

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
Back to top
Morris Dovey
*nix forums addict


Joined: 22 Jun 2005
Posts: 90

PostPosted: Fri Jul 21, 2006 4:56 am    Post subject: Re: Code problem Reply with quote

Sikandar (in 1153455703.962056.24920@h48g2000cwc.googlegroups.com)
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.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 2:19 pm | All times are GMT
navigation Forum index » Programming » C
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Loans | Personal Loans | Advertising | Free Advertising | Mobile Phones
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2170s ][ Queries: 16 (0.1483s) ][ GZIP on - Debug on ]