[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: c function returning table
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 25 Jun 2000 21:07:22 -0300 (EST)
>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