MCPcopy
hub / github.com/dabeaz/python-cookbook / example.py

File example.py

src/15/turning_a_function_pointer_into_a_callable/example.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import ctypes
2lib = ctypes.cdll.LoadLibrary(None)
3
4# Get the address of sin() from the C math library

Callers

nothing calls this directly

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected