I have the following C function that I would like to make available to Lua. short M(Array *a1, Array *a2, Array *a3,short term, short start) The results are returned via a2 and a3. What would be the best way to expose this function via Lua? Jim