Next: slua_tbl_el_n, Previous: slua_tbl_el_s, Up: Manipulating Tables
get a string element from a table
#include <luasup/luasup.h>char *slua_tbl_el_si( lua_Object table, const char *index );
lua_Object table
- the table containing the data
const char *index
- the index of the element
retrieve the value of an element in a table. The value should be
representable as a string, as a pointer to the
string is returned. This points to the Lua object; it differs
from slua_tbl_el_s
in that it doesn't allocate any memory
for the string.
It returns a pointer to the string upon succes, NULL
if the element didn't exist.
Diab Jerius