码迷,mamicode.com
首页 > 其他好文 > 详细

what a malloc has to do

时间:2014-09-15 14:17:28      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:ar   on   c   r   as   return   ca   d   oc   

1) Allocate a chunk of memory big enough to satisfy the request, and return a pointer to it.
2) Remember which chunks of ram are in use and which aren‘t.
3) Combine free chunks to make bigger ones.

what a malloc has to do

标签:ar   on   c   r   as   return   ca   d   oc   

原文地址:http://www.cnblogs.com/miaoz/p/3972665.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!