hotwire/examples/unix/main.c
interfiberschool 9798f880f9 dlsym
2023-03-17 11:45:37 +00:00

12 lines
230 B
C

#include "../../src/dlopen.h"
typedef void (*func_handle)();
int main()
{
struct hotwire_dll_t dll = hw_dlopen("./bin/exampleUnixLib.dll", RTLD_NOW);
func_handle func = (func_handle)hw_dlsym(dll, "test");
func();
}