lua-users home
lua-l archive

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


Hello Tobias,

Tuesday, June 24, 2003, 4:32:39 PM, you wrote:

TK> Is it possible to compare two strings which are already in lua (on
TK> top of the stack preferably), using the C interface? Or do i have
TK> to load them into C buffers?

LUA_API int            lua_equal (lua_State *L, int idx1, int idx2);
LUA_API int            lua_rawequal (lua_State *L, int idx1, int idx2);
LUA_API int            lua_lessthan (lua_State *L, int idx1, int idx2);



Dmitry Shubin

----