home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / reslib / try_lib.c < prev   
C/C++ Source or Header  |  1991-03-08  |  391b  |  19 lines

  1. #include "proto/exec.h"
  2. #include "test_pragmas.h"
  3.  
  4. struct Library *TestBase;
  5.  
  6. main()
  7. {
  8.     TestBase = OpenLibrary("test.library",0);
  9.    if (TestBase)
  10.    {
  11.       printf("Library Opened Sucessfully.\n");
  12.       printf("test1 = %d\n",test1());
  13.        printf("test2 = %d\n",test2(2));
  14.       CloseLibrary(TestBase);
  15.       printf("Library Closed.\n");
  16.    }
  17.    else printf("Library Failed to Open.\n");
  18. }
  19.