linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* extern storage class & multiple declaration
@ 2002-08-22  7:52 Alina Valea
  2002-08-22  8:02 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 2+ messages in thread
From: Alina Valea @ 2002-08-22  7:52 UTC (permalink / raw)
  To: linux-c-programming



Hello everybody,

Suppose we have:

---------------------------------------- file.h

extern int i; ----------------------------------------

and ---------------------------------------- file.c

#include "file.h"

int i; ...

/* No actual use of i here */
------------------------------------------

----------------------------------------- another_file.c

#include "file.h"

void func() {

i=3; }

-----------------------------------------

I know this is entirely correct, but is it an acceptable
programming habit?

Thank you, Alina


----

Home, no matter how far...
http://www.home.ro

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

end of thread, other threads:[~2002-08-22  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-22  7:52 extern storage class & multiple declaration Alina Valea
2002-08-22  8:02 ` Jan-Benedict Glaw

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 NNTP newsgroup(s).