lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Feb 24, 2011 at 2:15 PM, zhiguo zhao <zhaozg@gmail.com> wrote:
After some test, I get this solution.

local args = ffi.new('const char*[2]')
args[0] = arg[0]
args[1] = nil

Is this right.

If arg[0] is kept alive during the call.