After some test, I get this solution. local args = ffi.new('const char*[2]') args[0] = arg[0] args[1] = nilIs this right.