MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_dlib_init

Function hc_dlib_init

dynamic/dynamic.c:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119struct hc_dlib *hc_dlib_init(struct hc_dlib *lib, const char *path) {
120 lib->handle = dlopen(path, RTLD_NOW);
121
122 if (!lib->handle) {
123 hc_throw("Error opening dynamic library '%s': %s", path, dlerror());
124 }
125
126 return lib;
127}
128
129struct hc_dlib *hc_dlib_deinit(struct hc_dlib *lib) {
130 if (dlclose(lib->handle) != 0) {

Callers 1

dynamic_testsFunction · 0.85

Calls

no outgoing calls

Tested by 1

dynamic_testsFunction · 0.68