title: LuaJIT ffi : How to pass array of string to c function
body: <p>I want to pass Lua table storing strings to c function. So for example if I have </p>
  
  <pre><code>tStr = {"String1", "String2", "String3"}
  </code></pre>
  
  <p>How do I pass to C function. I think I have to call ffi.new but which what type I am not sure.. </p>
  
  <pre><code>local cVar = ffi.new("??" , tStr)  -- I am not sure what to pass as type 
  </code></pre>
  
  <p>parameter</p>
  
  <p>Also in C Function, I am not sure how to access the whole data, will it be string pointer pointing to string , **str ??</p>
  
  <pre><code>void cFunction(**str); --What pointer type should be used here ??
  </code></pre>
  
  <p>... 
  Apologies if I missed something obvious question. But I am just starting with Lua &amp; ffi. so I am still not aware of most of the things .. </p>