Call C functions from Python

Java and Swing codecraig at gmail.com
Tue Oct 4 15:30:31 EDT 2005


Is there some other way, besides SWIG, which will allow me to call
functions inside an Ansi C DLL?

Example (C):

defs.h
-------
typedef unsigned long MY_DIGIT;

myapp.c
-----------------
#include "defs.h"

char *DoSomeStuff(char *input, MY_DIGIT *digits) {
    ...
}


..thats an example of something I would like to call from Python.




More information about the Python-list mailing list