extern functions in header file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

Is there any difference between declaring functions with prefix "extern" and 
without "extern" keyword in header files??
For example, I define a function FUNC(void, int) in test.c. And test.c 
includes the test.h with the following two conditions:

--test.h with extern--
extern void FUNC(void, int);

--test.h without extern--
void FUNC(void, int);

The output result seems no difference, and also the compiler does not show 
warning messages for both cases. Can anyone advise what the 'extern' keyword 
effects in the header file?

Best Regards
Ming-Chia

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux