//listrStackSize.c //John T. Rine //October 12, 2011 #include #include #include"all.h" int listStackSizeHead(node *head) { int size = 0; while (head != NULL) { head = head->next; size++; } return size; } int listStackSizeTail(node *tail) { int size = 0; while (tail != NULL) { tail = tail->prev; size++; } return size; }