home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_08 / 8n08077b < prev    next >
Text File  |  1990-07-18  |  425b  |  29 lines

  1.  
  2.    EXTERN.H
  3.  
  4.    /* References to all extern variables */
  5.    extern char date[9];     
  6.  
  7.    FILE #1
  8.  
  9.    #include "extern.h"
  10.    char date[9]; 
  11.    main()
  12.          {
  13.          strcpy ( date, "01-01-90" );
  14.          foo();
  15.          puts ( date );
  16.         }
  17.  
  18.    FILE #2
  19.  
  20.     #include "extern.h"
  21.  
  22.      foo()
  23.        {
  24.        puts ( date );
  25.        strcpy ( date, "02-02-90");
  26.        puts (date );
  27.        }
  28.  
  29.