home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / M2V11-2.LHA / modula / dice / dice.lha / dynamic / dynamic.lha / objsrc / libs / dos.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-28  |  395 b   |  31 lines

  1.  
  2. /*
  3.  *  DOS.C   dos.library support
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <exec/libraries.h>
  8. #include <clib/exec_protos.h>
  9.  
  10. typedef struct Library Library;
  11.  
  12. Library *hyper_DOSBase;
  13.  
  14. long
  15. _auto_start()
  16. {
  17.     if (hyper_DOSBase = OpenLibrary("dos.library", 0))
  18.     return(1);
  19.     return(0);
  20. }
  21.  
  22. void
  23. _auto_exit()
  24. {
  25.     if (hyper_DOSBase) {
  26.     CloseLibrary(hyper_DOSBase);
  27.     hyper_DOSBase = NULL;
  28.     }
  29. }
  30.  
  31.