public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* extern functions in header file
@ 2004-09-10  6:37 Ming-Chia Jiang
  2004-09-10 10:40 ` Eljay Love-Jensen
  0 siblings, 1 reply; 3+ messages in thread
From: Ming-Chia Jiang @ 2004-09-10  6:37 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-10 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-10  6:37 extern functions in header file Ming-Chia Jiang
2004-09-10 10:40 ` Eljay Love-Jensen
2004-09-10 11:04   ` Sriharsha Vedurmudi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).