LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   import c header file into a python script (https://www.linuxquestions.org/questions/programming-9/import-c-header-file-into-a-python-script-728434/)

deathalele 05-25-2009 05:42 PM

import c header file into a python script
 
I have a c .h file with a few functions in that would like to import into a python script.

how would i do this (if its possible without translating a program)

thanks in advance

Hko 05-26-2009 09:50 AM

You do not need to translate the entire thing from C to python. But it will still a bit of work.

Read all about it at these obvious places:

http://docs.python.org/extending/
http://docs.python.org/c-api/


All times are GMT -5. The time now is 02:33 PM.