3 ms·
You can even do it in POSIX C with dlsym.
by prutschman 13y ago
You can even do it in POSIX C with dlsym.
- swift 13y agoHeh, true, though it requires that the function you want to call be in a dynamic library.
- prutschman 13y agoI thought so too, but the man pages suggest that may not be a requirement. Under Mac OS X, it looks like dlsym(RTLD_DEFAULT, "symbol") will look for the symbol anywhere. Under Linux it looks like dlopen(NULL, flags) will open a handle to the main program which can be passed to dyslm's first argument.