TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bo Simonsen
from: Jasen Betts
date: 2003-10-21 06:51:42
subject: Memory matters

Hi Bo.

20-Oct-03 16:35:45, Bo Simonsen wrote to Pascal Schmidt

 BS> forgot all about I needs to be written in another way for freeing.

 BS> curStruct = firstStruct;
 BS>
 BS> do
 BS> {
 BS>     tmpStruct = curStruct->next;
 BS>     free(curStruct);
 BS>     curStruct = tmpStruct;
 BS> } while(curStruct);

don't try that with a NULL list...  (put the while at the top inplace of
the do)

 -=> Bye <=-

---
* Origin: Money is the root of all wealth. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.