Programmatically enumerate characters in a dynamic library on Mac OS X

I need a way to list the characters and their addresses exported from dylib on Mac OS X.

From the shell I would usually use nmfor this - is there a library that I can use from my code to get the same things as nm? Similar to the dbghelp API for Windows.

As a last resort, I suppose I could generate nmand analyze the output, but I try to avoid this if there is a cleaner method.

+3
source share
1 answer

nm ( otool) , API. , , , (. "Man Mach-O" ). nm ; , - , .

+3

All Articles