RSS feed icon

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.

Read more ...

Posted at 18:04 | Comments(0) | Permalink | Trackbacks(0) | Tags: , , | add to del.icio.us