•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Storage Classes: extern ]

Default class for all undefined/prototype functions.

Used to share global variables and functions between different
modules.  Addresses will be resolved by the linker, which will also
detect duplicate global names.

It is best to put extern prototypes in a shared header file (see
#include) to make sure the data types match.  An extern definition
will not interfere with a global definition in the same module (so
long as the data types match).

Note: 'extern char *p;' and 'extern char p[];' are NOT equivalent.

See also Variables and Functions.