Created
March 4, 2017 19:51
-
-
Save chadbrewbaker/68ba30c6ae2384641e27efd3a556cbd3 to your computer and use it in GitHub Desktop.
Example of how to called a shared object file on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
libc = ctypes.cdll.LoadLibrary("/usr/lib/libc.dylib") | |
print libc.div(9,3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment