The C Utility Toolkit
Main Page | Data Structures | File List | Data Fields | Globals

dll.c File Reference

#include <cutk/dll.h>
#include <cutk/dir.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>

Functions

Dll DllOpen (const char *path)
int DllClose (Dll dll)
void * DllSym (Dll dll, const char *sym)

Function Documentation

int DllClose Dll  dll  ) 
 

Unloads a DLL from memory.

Parameters:
dll DLL handle
Returns:
0 on sucess; non-zero on fail

Dll DllOpen const char *  path  ) 
 

Loads a DLL into memory.

Parameters:
path File path
Returns:
DLL handle or 0 on fail

void* DllSym Dll  dll,
const char *  sym
 

Looks up a symbol in a DLL.

Parameters:
dll DLL handle
sym Symbol name
Returns:
Pointer to symbol or 0 on fail


Generated on Wed Jan 12 13:13:42 2005 for CUTK by doxygen 1.3.7