lua-users home
lua-l archive

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


>From lua-l@tecgraf.puc-rio.br  Thu Jun 22 11:27:41 2000
>From: "John Passaniti" <jmp@pt.com>
>
>Can someone point me to an example of a C function that returns a table?  I

See getargs in lua.c. See also ldblib.c.

>have the need to read a directory and place the filenames in a table.
>While I could decompose this with wrappers for opendir(), readdir(), and
>closedir(), I would rather just return everything in a single table in one
>shot.

poslib does that, doesn't it?
--lhf