[Numpy-discussion] Getting C-function pointers from Python to C

Nadav Horesh nadavh@visionsense....
Thu Apr 12 11:23:25 CDT 2012


________________________________
>> Example:

>> lib = ctypes.CDLL('libm.dylib')
>> address_as_integer = ctypes.cast(lib.sin, ctypes.c_void_p).value

 Excellent!

  Sorry for the hijack, thanks for rhe ride,

   Nadav.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120412/657502b5/attachment.html 


More information about the NumPy-Discussion mailing list