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

Hi Bo.

13-Oct-03 17:45:54, Bo Simonsen wrote to All


 BS> Hello All!

 BS> In my file ticker, I'm reading the configuration into a
 BS> structure.. This structure do I need all the time, so I figured is
 BS> it nessersary to free it then I'm ending the program

it's a good idea to free it at the end of the program, but most platforms
will free it for you if you leave it allocated.

one handy way to free global allocations is to put all the frees in an
exitfunction and use atexit() to register it.

another is not to allocate them but instead have them as ordinary global
variables



 -=> Bye <=-

---
* Origin: Keyboard not connected, press to continue. (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™.