Oct 08, 2007
What I learned from Python that makes me a better programmer when I use C
Here is my response to this call for posts on the raganwald blog. A response from Ryan Ginstrom can be found here
Posted at 10:49 |
Comments(3) |
Permalink |
Trackbacks(0) |
Tags: C, languages, programming, Python |
add to del.icio.us
Oct 02, 2007
Assigning a python list to a C char ** using SWIG
Using a SWIG-generated interface it's straightforward to assign variables of type char * from a Python script to a C variable: the char * datatype is assumed to be a NULL terminated ASCII string and mapped accordingly. The situation is a little different for variables of type char **, commonly used for arrays of pointers to strings.
Posted at 18:04 |
Comments(0) |
Permalink |
Trackbacks(0) |
Tags: C, Python, swig |
add to del.icio.us

