1#include <stdbool.h> 2#include <stdlib.h> 3#include <dlfcn.h> 4 5bool foo() 6{ 7 return (dlopen("./libbar.dylib", RTLD_NOW) != NULL); 8} 9