finish c style linked list