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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I have the following line of

Status
Not open for further replies.

unirams

Programmer
Dec 25, 2001
20
IN
Hi,
I have the following line of codes in my library file(.h).

#ifdef __cplusplus
extern "C" {
#endif

extern void function(int a, int b);
extern void function2(int x, int y);

#ifdef __cplusplus
}
#endif

But i didn't find out the exact declaration and definition place of the abovementioned 2 functions function1, function2.

Any idea Please?

Thanks in advance.
Ram
 
Ram,

extern becomes redundant when it comes to function in the
global namespace.

i,e,
if you declare a function as

void func(void);
or
extern void func(void);

and if the defination exists in
some other file than both the declaration does the same thing.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top