library management using linked lists C