Following is the C function para_trans_test.
void para_trans_test(char x [] [100])
{
strncpy(x[0],"zzz",100);
}
Following is the python code which doesnt work.
lib.para_trans_test.argtypes= [ctypes.POINTER(ctypes.c_char_p)]
numParams=2
L=numpy.array(['xxx','yyy'])
print(type(L))
py_s1 = (ctypes.c_char_p * numParams) ()
py_s1[:]=L
print("py_s1=",py_s1)
lib.para_trans_test(py_s1)
print(py_s1)
Initially array L is ('xxx','yyy').
After calling the C function para_trans_test I want array L to be ('zzz','yyy')