how can I use c-struct in lua?
2 Answers
A terse question on a vast topic...
You can use, for example, the http://www.inf.puc-rio.br/~roberto/struct/ library, made by one of the Lua authors. There are alternatives, including writing your own C code to interface with Lua, access or build the structure, etc.