SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // address where the address to the next free block is stored
  2. void *next_addr(void *ptr){
  3.     return ptr-4;
  4. }
  5.  
  6. // address to next free block
  7. void *next_free(void *ptr){
  8.     unsigned int *nxt = next_addr(ptr);
  9.     return (void *) *nxt;
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top