First page Back Continue Last page Overview Graphics

Converting Python list to a char **

See code in /python_list_to_char_array

Using the module pl2c:

$ python

Python 2.7.6 (default, Mar 22 2014, 22:59:56)

[GCC 4.8.2] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import pl2c

>>> pl2c.print_args(["Dave","Mike","Mary","Jane","John"])

list size = 5

argv[0] = Dave

argv[1] = Mike

argv[2] = Mary

argv[3] = Jane

argv[4] = John

5

>>>