home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / TestTools / Sources / CircLib2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-19  |  339 b   |  22 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CircLib2.c
  3.  
  4.     Contains:    Test for cyclical dependencies working
  5.  
  6.     Copyright:    © 1992-1993 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10. extern int CircLib3(void);
  11. extern int CircLib1(void);
  12.  
  13. int CircLib2()
  14. {
  15.     int a = CircLib1();
  16.     int b;
  17.     if (a != 515)            // a is always is 515!
  18.         b = CircLib3();
  19.     else
  20.         b = 1;
  21.     return a + b;
  22. }