Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function definition with multiple '( )'

Status
Not open for further replies.

abcd12344445555

Programmer
Joined
May 10, 2009
Messages
24
Location
BR
Hi,

Is that a function definition? Why there are 2 sets of '()' in the definition and in the call?
What's the name of this kind of definition?

Definition:

Code:
static inline void func(pu) ( void )
{
  printf( "%s", s_msg_usage );
}

Call:

Code:
func(pu)();

Thanks.
 
func(pu) returns a function pointer. The second set of () is for the function pointer.
 
Thanks for the reply. It turned out that the 'func(pu)' was actually a macro.

Regards.
 
Status
Not open for further replies.

Similar threads

Replies
0
Views
451
Replies
6
Views
637
Replies
0
Views
297
Replies
1
Views
529

Part and Inventory Search

Sponsor

Back
Top