lua-users home
lua-l archive

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


How do I pass binary data to a c dll from lua?

I retrieve the value in c by using "arg1 = luaL_checklstring(L, 1, &len);", but than it says "string expected, got userdata".

Should I use something other than "luaL_checklstring"?

Thanks.