home *** CD-ROM | disk | FTP | other *** search
- /*
- Shared library test
- written November, 1987
- by Preston L. Bannister
- */
-
- #include <debug.h>
- #include "libs.h"
- #include "xlib.h"
-
- Library XLibBase; /* points to our example library */
-
- main ()
- {
- if (InitLibSupport())
- {
- printf("Attempting to find library '%s'\n",XLIB_NAME);
- if (XLibBase = (Library)FindLibrary(XLIB_NAME,XLIB_VERSION))
- {
- printf("XLibBase 0x%08X\n",XLibBase);
- DEBUG(("Calling XLibP0 @ 0x%08X\n",XLibBase[0]));
- XLibP0();
- DEBUG(("Calling XLibP1 @ 0x%08X\n",XLibBase[1]));
- XLibP1();
- DEBUG(("Calling XLibP2 @ 0x%08X\n",XLibBase[2]));
- (void)XLibP2();
- }
- else
- {
- printf("XLib not availible??\n");
- }
- }
- exit(0);
- }
-