hotwire/examples/unix/main.c
2023-03-17 12:42:47 +00:00

13 lines
244 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();
hw_dlclose(dll);
}