home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ANews 1
/
AnewsCD01.iso
/
Internet
/
Newsgroup
/
THOR_2.6
/
THOR26_API.LHA
/
common
/
OpenBrLib2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-20
|
696b
|
38 lines
/* OpenThorLib.c
Auto: SC <path>OpenBRLib2.c NOSTKCHK IDIR src:bbsread/include DEBUG FULL
*/
#define __USE_SYSBASE 1
#include <exec/types.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <libraries/dos.h>
#include <libraries/bbsread.h>
struct Library *OpenBRLibrary(
struct ExecBase *SysBase,
struct DosLibrary *DOSBase,
STRPTR libName,
LONG version)
{
TEXT envbuf[256];
struct Library *libBase = NULL;
if(GetVar(ENV_THORPATH, envbuf, 256, GVF_GLOBAL_ONLY))
{
if(AddPart(envbuf, "libs", 256))
{
if(AddPart(envbuf, libName, 256))
{
libBase = OpenLibrary(envbuf, version);
}
}
}
if(!libBase) libBase = OpenLibrary(libName, version);
return(libBase);
}