Call C program

Grant Edwards invalid at invalid.invalid
Thu Dec 3 10:51:34 EST 2009


On 2009-12-03, Patrick Sabin <patrick.just4fun at gmail.com> wrote:

>> I am developing a Python application and I need to call a C program 
>> which needs one parameter and it returns another one.

> Have a look at the ctypes module 
> http://python.net/crew/theller/ctypes/tutorial.html

Ctypes is great, except it's for calling C functions within
libraries.  Calling C programs is done using the subprocess
module:

http://docs.python.org/library/subprocess.html

-- 
Grant Edwards                   grante             Yow! I'm rated PG-34!!
                                  at               
                               visi.com            



More information about the Python-list mailing list