Singly linked list implemented in C