home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.1 / JimmDemos / DemoSource / openi.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  404 b   |  19 lines

  1. /* openintui.c -- get that sucker open and don't bother me    */
  2. /* by Jim Mackraz, 1987.  Placed in the public domain by the author.    */
  3.  
  4. #include <functions.h>
  5.  
  6. struct IntuitionBase    *IntuitionBase = 0L;
  7.  
  8. struct IntuitionBase    *
  9. OpenI(vers)
  10. {
  11.     return (IntuitionBase = (struct IntuitionBase *)
  12.         OpenLibrary("intuition.library", (long) vers));
  13. }
  14.  
  15. CloseI()
  16. {
  17.     if (IntuitionBase) CloseLibrary(IntuitionBase);
  18. }
  19.