I am trying to pick my chain in the format {1,2,3,4,etc}. You can find the header file below which will have the layout of the nodes. I am just confused on how I should go about
Suppose your list is cyclical, you can use this:
struct Node *n = begin; if (n != NULL) { //do something on it ... for (n = begin->Succ; n != begin; n = n->Succ) { } }
or
struct Node *n = begin; if (n != NULL) { do { //do something ... n = n->Succ; } while (n != begin) }