home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / dtx9202 / borhot / file1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-07  |  953 b   |  29 lines

  1. /* ------------------------------------------------------ */
  2. /*                    FILE1.C                             */
  3. /*            (c) 1990 Borland International              */
  4. /*                 All rights reserved.                   */
  5. /* ------------------------------------------------------ */
  6. /*  veröffentlicht in: DOS toolbox 2'92                   */
  7. /* ------------------------------------------------------ */
  8.  
  9.        int gi;   // Global that can be shared between files.
  10. static int si;   // Localized global, can't be shared.
  11. extern int ei;   // Global int reference.
  12.                  // It's in a different file.
  13.  
  14. void f(void);
  15.  
  16. // ------------------------------------------------------- *
  17.  
  18. int main(void) {
  19.   gi = 1;
  20.   si = 2;
  21.   ei = 3;
  22.   f();
  23.   return 0;
  24. }       // end of main()
  25.  
  26. /* ------------------------------------------------------ */
  27. /*                    Ende von FILE1.C                    */
  28.  
  29.