My problem is that I do not know how to put the 5 arrays that I have
created on the stack in a new array.
This is the syntax that is working for me right now:
#!/usr/bin/env lua
require "perfstat"
adapter1,adapter2,adapter3,adapter4,adapter5 = perfstat.diskadapters();
try
array = { perfstat.diskadapters() }
"If the last field in the list has the form exp
and the _expression_ is a function call or a vararg _expression_,
then all values returned by this _expression_ enter the list consecutively."
http://www.lua.org/manual/5.1/manual.html#2.5.7
Here's the relevant part of my C-Code for creating the arrays:
you may also want to call lua_checkstack
http://www.lua.org/manual/5.1/manual.html#lua_checkstack
regards
Klaus