Next: , Previous: Manipulating Tables, Up: Manipulating Tables


A.2.1 slua_tbl_nelem

return the number of elements in a Lua table

Synopsis

     #include <luasup/luasup.h>
     
     
     
int slua_tbl_nelem(lua_Object table);

Parameters

lua_Object table
the table to iterate over

Description

This routine counts the number of elements in a Lua table.

Returns

It returns the number of elements in the table

Author

Diab Jerius