Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Why no reset() ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 24487 of 27679
Post > Topic >>

Why no reset() function?

by Prad <nospam@[EMAIL PROTECTED] > Feb 3, 2008 at 12:33 AM

Hello,

In BASIC there is a very useful function called RESET that clears out
all the stored variables and restores memory state to startup.

Why is there not a similar function in C? It should free up all heap
allocations without having to free them individually.

Often programs will have memory leaks, so if they are run over long
times then it's necessary to restart them sometimes. With a reset()
function, they could effectively restart themselves by freeing their
memory without needing to be closed and reopened.
 




 10 Posts in Topic:
Why no reset() function?
Prad <nospam@[EMAIL PR  2008-02-03 00:33:54 
Re: Why no reset() function?
Ian Collins <ian-news@  2008-02-03 12:40:29 
Re: Why no reset() function?
richard@[EMAIL PROTECTED]  2008-02-03 00:12:16 
Re: Why no reset() function?
Morris Dovey <mrdovey@  2008-02-02 18:24:47 
Re: Why no reset() function?
"=?iso-8859-1?q?Tom=  2008-02-03 00:40:56 
Re: Why no reset() function?
Robert Latest <boblate  2008-02-04 10:44:37 
Re: Why no reset() function?
Eric Sosman <esosman@[  2008-02-04 08:50:07 
Re: Why no reset() function?
testdemo <testdemo@[EM  2008-02-04 08:50:25 
Re: Why no reset() function?
dj3vande@[EMAIL PROTECTED  2008-02-04 15:52:54 
Re: Why no reset() function?
Robert Latest <boblate  2008-02-05 13:01:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:17:37 CDT 2008.