home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 519b.lha / FZIFF / libraries.c < prev    next >
C/C++ Source or Header  |  1991-06-09  |  430b  |  24 lines

  1. #include <functions.h>
  2. #include <exec/types.h>
  3. #include <exec/devices.h>
  4. #include <intuition/intuition.h>
  5. #include <ctype.h>
  6.  
  7. struct IntuitionBase *IntuitionBase = NULL;
  8.  
  9. void trash_libs(void)
  10. {
  11.     if (IntuitionBase) 
  12.         CloseLibrary(IntuitionBase);
  13. }
  14.  
  15. void init_libs(void)
  16. {
  17.     add_cleanup(trash_libs);
  18.  
  19.     if (!(IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",0L)))
  20.         panic("Can't open intuition.library");
  21.  
  22. }
  23.  
  24.