home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / xlib / lib_init.c next >
Encoding:
C/C++ Source or Header  |  1987-12-07  |  402 b   |  23 lines

  1. /* Basic shared library support */
  2.  
  3. #include <osbind.h>
  4. #include "libs.h"
  5.  
  6. Library LibSupportBase;
  7.  
  8.  
  9. /* Initialize shared library support */
  10.  
  11. int
  12. InitLibSupport ()
  13. {
  14.   register GetLibraryFunction find_lib;
  15.   
  16.   find_lib = (GetLibraryFunction)Setexc(LIB_FIND_VECTOR,-1L);
  17.   if (find_lib)
  18.   {
  19.     LibSupportBase = (*find_lib)(LIBSUPPORT_NAME,LIBSUPPORT_VERSION);
  20.     return (0L != LibSupportBase);
  21.   }
  22. }
  23.