Skip to content

Instantly share code, notes, and snippets.

View VitoVan's full-sized avatar
💢
I'm sorry, did I break your concentration?

VitoVan

💢
I'm sorry, did I break your concentration?
View GitHub Profile
#include <dlfcn.h>
#include <stdio.h>
int main() {
printf("Calling dlopen()..\n");
void* handle = dlopen("lib/libSDL2_image.dylib", RTLD_NOW );
if (handle == NULL) {
fprintf(stderr, "Could not open libssl.dylib: %s\n", dlerror());
return 1;
}
if (dlclose(handle) != 0) {