home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_04 / allison / linkage2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-10  |  411 b   |  19 lines

  1. LISTING 6 -
  2. /* linkage2.c:  Links with linkage1.c */
  3.  
  4. *** NOTE to EDITOR: This must be set in small type and perhaps
  5. span across the page to stay intact - IT MUST NOT WRAP!
  6. Thank you. ***
  7.  
  8. #include <stdio.h>
  9.  
  10. extern int i;               /* External Linkage */
  11.  
  12. static int j = 3;           /* Internal Linkage */
  13.  
  14. void f3(void)               /* External Linkage */
  15. {
  16.     printf("%d\n",i+j);
  17. }
  18.  
  19.