|
From: Ioannis V. <iv...@em...> - 2003-06-09 03:03:29
|
Ok, got it. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Sunday, June 08, 2003 6:39 PM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: RE: [Dev-C++] Single Linked List-IV > > > If the list is non-empty, then *last is non-NULL. In that > case, the OLD > last entry should have it's next pointer pointing at the NEW > last entry. > > It doesn't matter if the list was empty or not. After an insert - the > insert is always at the end of the list - *last should be set > to point to > the NEW last entry. Without this last line, LAST would always > be NULL, and > you wouldn't get a linked list. |