Generic implementation of the linked list in C.