home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
comm
/
Mail+News
/
UMS11
/
Developer
/
C
/
slib
/
UMSlib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-23
|
464b
|
31 lines
#include <constructor.h>
#include <proto/exec.h>
#include <proto/ums.h>
void __regargs __autoopenfail(char *);
extern LONG __UMSlibversion;
struct Library *UMSBase ;
static struct Library *LibBase;
CBMLIB_CONSTRUCTOR(OpenUMS)
{
if (UMSBase=LibBase=OpenLibrary("ums.library",__UMSlibversion)) return 0;
__autoopenfail("ums.library");
return 1;
}
CBMLIB_DESTRUCTOR(CloseUMS)
{
if (LibBase)
{
CloseLibrary (LibBase);
LibBase=UMSBase=NULL;
}
}