Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Strange sintax
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 25283 of 27670
Post > Topic >>

Strange sintax

by InuY4sha <inuY4sha@[EMAIL PROTECTED] > Apr 2, 2008 at 01:58 AM

Hi all :)
sorry.. I know this is a very mean question but I can't get the
following couple of lines:
     static int dev_init(struct net_device *dev);
     struct net_device my_device = { init: dev_init, };
To me it looks something like defining a function and creating a
structure that stores a label referencing that function.. what's the
scope behind this ?
Also I don't get the comma after "dev_init"...
Can somebody explain me this sintax please ?

Thanks in advance,
RM
 




 9 Posts in Topic:
Strange sintax
InuY4sha <inuY4sha@[EM  2008-04-02 01:58:16 
Re: Strange sintax
roberson@[EMAIL PROTECTED  2008-04-02 09:09:18 
Re: Strange sintax
WANG Cong <xiyou.wangc  2008-04-02 17:19:13 
Re: Strange sintax
Ben Pfaff <blp@[EMAIL   2008-04-02 09:06:41 
Re: Strange sintax
WANG Cong <xiyou.wangc  2008-04-02 17:14:30 
Re: Strange sintax
Ben Bacarisse <ben.use  2008-04-02 10:24:09 
Re: Strange sintax
user923005 <dcorbit@[E  2008-04-02 12:57:24 
Re: Strange sintax
Ben Pfaff <blp@[EMAIL   2008-04-02 13:25:45 
Re: Strange sintax
"Dann Corbit" &  2008-04-02 16:01:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 22:08:39 CDT 2008.