ctypes tutorial - svn.python.org
svn.python.org › projects › ctypesAs has been mentioned before, all Python types except integers, strings, and unicode strings have to be wrapped in their corresponding ctypes type, so that they can be converted to the required C data type: >>> printf ("An int %d, a double %f ", 1234, c_double (3.14)) Integer 1234, double 3.1400001049 31 >>>