summaryrefslogtreecommitdiff
path: root/reference/C/EXAMPLES/extern1.c
blob: d7d2eca555194f60555effd91a03c775871784f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/************************************************************************ 
 *
 * Purpose: Part one of a two part example showing the 
 *          extern keyword in action.
 *
 * Author:  M. J. Leslie
 *
 * Date:    24-Oct-95
 *
 ************************************************************************/

void write_extern(void);

extern int count;

void write_extern(void)
{
  printf("count is %i\n", count);
}