how to write a C source code for printing a circular linked list?