![]() |
dealloc linked list
this function deallocates a linked list. but it deallocates everything, including the head of the list.
how can i make it deallocate everything besides the head? :
void deallocate() |
Well, point 'previous' to list->next and 'current' to the node after that one.
|
| All times are GMT -5. The time now is 1:19 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC