link list -is this enough?

From: Yang Lee (yang__lee_at_ausi.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 13:01:24 +0000 (UTC)

Hi,
I have a single link list. at the end of the program or in a
loop i want to destroy this link list.
so is it enough to free the pointer to this link list
or do i have to traverse whole link list until last node where next
field is null and free each node.
please suggest.
thanks
lee

-- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG


Relevant Pages

  • Re: Threading and returning values
    ... The e.Result is not coming out of the loop. ... I have now got my SMTP server apparently running correctly now, ... BackgroundWorker bw = new BackgroundWorker; ... // Note that in the Click event handler, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... If you think I'm giving a verbose pseud write access to my server, ... interface appears in C Sharp as consisting of sbyte arrays. ... failed to see that a for loop is not just a while loop because a while ... chilling effect on freedom of speech. ...
    (comp.programming)
  • Re: multiple tcp server and client execution with close problem
    ... Ignore the loop for accept. ... for acceptafter settting socket to blocking mode. ... Client side: ... execute main to run server 3 times: ...
    (comp.unix.programmer)
  • Re: client-server network
    ... sent by server didn't reach the client...... ... nRet = WSAStartup; ... server scoket, and this would be binding some other random socket value, apparently the ... If you make this a server loop, it should be 'continue', not 'return'. ...
    (microsoft.public.vc.mfc)
  • Re: Structure of the multitasking server
    ... is written the maximum number of server per Check_Selector is 27. ... GNAT.Sockets.Create_Selector uses two socket and the TCP/IP sub-system ... for I in reverse S'Range loop ... This is more or less what I came up with, where the "channel" is a ...
    (comp.lang.ada)