@@ -48,3 +48,13 @@ LISTEL * insertAfter(void *theData, LISTEL *place)
}
return element;
+
+LISTEL * circularizeList(LISTEL *start)
+{
+ LISTEL *tail = start;
+ while (tail->next != NULL)
+ tail = tail->next;
+ start->previous = tail;
+ tail->next = start;
+ return start;
+}