Skip to content

OpenLibrary

snayaksnayak edited this page May 14, 2013 · 2 revisions

NAME

OpenLibrary - gain access to a library

SYNOPSIS

library = OpenLibrary(libName, version);
struct Library *OpenLibrary(STRPTR, ULONG);

FUNCTION

This function returns a pointer to a library that was previously
installed into the system.  If the requested library is exists, and
if the library version is greater than or equal to the requested
version, then the open will succeed.

NOTES

All calls to OpenLibrary should have matching calls to CloseLibrary!

INPUTS

libName - the name of the library to open.
version - the version of the library required.

RESULTS

library - a library pointer for a successful open, else zero.

SEE ALSO

[[CloseLibrary]]
Clone this wiki locally