Linked list library - C