demo of calling lua function from c program