lua-users home
lua-l archive

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


pure c code like this:
struct list{
struct list * prev;
struct list * next;
void * data;
};

int list_travel(struct list *h)
{
.....
}

The function list_travel travel the hole list h and do something, how can I can this function in lua script? Thanks.