lua-users home
lua-l archive

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

On Sat, Feb 5, 2011 at 4:05 PM, Philip Pemberton <> wrote:
> Hi guys,
> Does anyone know if it's possible to iterate over the contents of a
> table from C?

Yes, it's possible. The C API function you want to investigate is
lua_next(). There is a good example of how to use it for a traversal
loop in the reference manual: