What is the C code for a singly and doubly circular linked lists?