cgo: add reverse linked list in c