title: How to pass an array of strings from python to C using ctypes and modify that array values in C
body: <p>Following is the C function <strong>para_trans_test</strong>.</p>
  
  <pre><code>void para_trans_test(char x [] [100])
  {
      strncpy(x[0],"zzz",100);
  }
  </code></pre>
  
  <p>Following is the python code which doesnt work.</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>Initially array L is ('xxx','yyy').</p>
  
  <p>After calling the C function para_trans_test I want array L to be ('zzz','yyy')</p>