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
All content is Copyright © 2007 Jamie Bullock except comments, Copyright © 2007 respective authors.

