use dladdr for dynamic function names lookup