Advertisement
Max13

Untitled

Feb 5th, 2012
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. void *extend_heap(size_t size)
  2. {
  3. t_chunk *chunk;
  4. size_t t_size;
  5.  
  6. printf("extend_heap\n");
  7. t_size = round_pagesize(size + BLOCK_SIZE);
  8. if ((chunk = (t_chunk *) sbrk(t_size)) == (t_chunk *) - 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement