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

  1. /* ------------------------------------------------------ */
  2. /*                    FILE2.C                             */
  3. /*            (c) 1990 Borland International              */
  4. /*                 All rights reserved.                   */
  5. /* ------------------------------------------------------ */
  6. /*  veröffentlicht in: DOS toolbox 2'92                   */
  7. /* ------------------------------------------------------ */
  8.  
  9. extern int gi;   // Global int reference.
  10.                  // It's in a different file.
  11. static int si;   // Localized global, can't be shared.
  12.        int ei;   // Global int reference
  13.                  // That can be shared between files.
  14.  
  15. void f(void)
  16.          int i;  // Local int that is on the stack.
  17.   static int ii; // Scope is local, stored in data segment
  18.  
  19.   gi = 10;
  20.   si = 20;
  21.   ei = 30;
  22. }  // end of f()
  23. /* ------------------------------------------------------ */
  24. /*                    Ende von FILE2.C                    */
  25.  
  26.