defination of free function

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2006
Posts: 4
Reputation: chaitanya.b is an unknown quantity at this point 
Solved Threads: 0
chaitanya.b chaitanya.b is offline Offline
Newbie Poster

defination of free function

 
0
  #1
Mar 7th, 2006
hello every one, I am allocating memory using malloc library function, In oredr to deallocate memory we have to use free or realloc library functions.But I want to deallocate memory with out using free and realloc library functions,
any body has the logic for that code please help me, it is urgent

thank you
chaitanya
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,055
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: defination of free function

 
2
  #2
Mar 7th, 2006
This depends on the implementation of malloc.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 4
Reputation: chaitanya.b is an unknown quantity at this point 
Solved Threads: 0
chaitanya.b chaitanya.b is offline Offline
Newbie Poster

Re: defination of free function

 
0
  #3
Mar 8th, 2006
Originally Posted by Rashakil Fol
This depends on the implementation of malloc.

OK sir, but can you give me for both malloc and free library functions definition i,e I want to allocate memory dynamically with out using malloc and deallocate memory with out using free library functions, I am waiting for your reply,
Thank you
chaitanya
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,055
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: defination of free function

 
2
  #4
Mar 8th, 2006
This depends on your operating system.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: defination of free function

 
0
  #5
Mar 8th, 2006
Originally Posted by chaitanya.b
OK sir, but can you give me for both malloc and free library functions definition i,e I want to allocate memory dynamically with out using malloc and deallocate memory with out using free library functions, I am waiting for your reply,
Read chapter 8 of K&R, The C programming Language, 2nd Edition.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum


Views: 3766 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC