99: else if(item1==myList->last) //final checks for if they are first or last, checking if a single items last & 100: { //none are first 101: pos=getpos(myList,item1); 102: myList->last=setpos(myList,pos-1); 103: item1->after=item2->after; 104: myList->last->after=NULL; //moving last back 1 and pointing item 1 to what item 2 points to 105: pos=getpos(myList,item2); 106: tmp=setpos(myList,pos-1); 107: tmp->after=item1; //dis-connecting item 2 and totally connecting item 1 108: myList->last->after=item2; 109: myList->last=item2; //moving item 2 to last pos and re-adjusting last pointer 110: }