lua-users home
lua-l archive

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

When I use:

char *text;
text = (char *)lua_tostring(L, 1);

Does text now contain a pointer to the string or is it a pointer to a newly allocated array of memory containing the sting. I guess what I am asking is does lua allocate some new space the I use lua_tostring.
and does it ever de-allocate it or is it up to me?

Denis Lamarche

Get your FREE download of MSN Explorer at