lua-users home
lua-l archive

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



Yes, sure. Just push a table (lua_newtable()) and attach subtables to it (another lua_newtable() and some lua_settable() etc.). I can give you more precise info if you want.

-ak


bestworldweb kirjoittaa torstaina, 6. maaliskuuta 2003, kello 09:44:

Could you please take the time to answer the following questions.
Thanks in advance.

Is it possible to return a 2d array from a C/C++ function

i want to pass an array that looks like this:
array[0][1]=1234324
array[0][2]="01/03/2003"

In C I am passing a struct array ie
astruct.last=123;astruct.date="01/02/2003";

Can you return array from a C/C++ function? Can you pass structs?
Thanks.