let say i have a file name hello.c ( it print the message "hello world" )and i create a python script known as first.py how do i call the hello.c file in the python file ??
moreover how to call a a C function to a python file?
Python and c code?
There is no one paragraph answer to your question. Your C code needs to be turned into a Python extension/module. You must look at the documentation (see http://docs.python.org/ext/ext.html ) and Google writing C extensions for Python.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment